Created
September 13, 2012 00:35
-
-
Save foogoof/3711014 to your computer and use it in GitHub Desktop.
Shakes a DOM element
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I love the name! Super shake!
The 2nd animation should probably be , :right (* 2 dist)