Hacker News new | ask | show | jobs
by diggan 964 days ago
Unsure about vanilla JS, but for ClojureScript, import the MagicMotion component from react-magic-motion and then wrap whatever you want to automate with the MagicMotion component, seems to be enough (but I haven't tried myself).
1 comments

This requires reagent?
I guess you could use a React component somehow without Reagent, but if you're using ClojureScript you're most likely already using Reagent I guess?
I'm using Electric clojure, so no.