public
Created

Shakes a DOM element

  • Download Gist
super-shake.cljs
Clojure
1 2 3 4
(defn super-shake [item value]
(start (apply bind item (mapcat (fn [dist] [{:effect :slide, :left dist, :time 375}
{:effect :slide, :left (- dist), :time 375}])
(range 500 0 -100)))))

I love the name! Super shake!

The 2nd animation should probably be , :right (* 2 dist)

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.