Skip to content

Instantly share code, notes, and snippets.

@djKianoosh
Forked from foogoof/super-shake.cljs
Created September 13, 2012 12:30
Show Gist options
  • Save djKianoosh/3714009 to your computer and use it in GitHub Desktop.
Save djKianoosh/3714009 to your computer and use it in GitHub Desktop.
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)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment