mirror of
https://github.com/penpot/penpot.git
synced 2025-07-25 15:27:17 +02:00
🎉 Add animations to interactions
This commit is contained in:
parent
24062beebe
commit
81cbc33dbb
24 changed files with 1479 additions and 160 deletions
|
@ -425,3 +425,10 @@
|
|||
[]
|
||||
(.back (.-history js/window)))
|
||||
|
||||
(defn animate!
|
||||
([item keyframes duration] (animate! item keyframes duration nil))
|
||||
([item keyframes duration onfinish]
|
||||
(let [animation (.animate item keyframes duration)]
|
||||
(when onfinish
|
||||
(set! (.-onfinish animation) onfinish)))))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue