Skip to content

Instantly share code, notes, and snippets.

View arootroatch's full-sized avatar

Alex Root-Roatch arootroatch

View GitHub Profile
@acobster
acobster / animations.cljs
Created March 4, 2020 21:51
Reagent animations with framer-motion
(ns app.motion
(:require
[framer-motion :refer (motion AnimatePresence useSpring useMotionValue useTransform useViewportScroll) :as motion]
[cljs-bean.core :refer [bean ->clj ->js]]))
(def div
(.-div motion))
(def span
(.-span motion))
(def li
(.-li motion))