Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Shakes a DOM element
(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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment