mirror of
https://github.com/penpot/penpot.git
synced 2025-07-21 20:07:15 +02:00
⚡ Add lazy loading to dashboard templates
This commit is contained in:
parent
04fe8f8960
commit
7c1e8a753f
3 changed files with 36 additions and 40 deletions
|
@ -756,6 +756,12 @@
|
|||
[]
|
||||
(.reload (.-location js/window)))
|
||||
|
||||
(defn scroll-by!
|
||||
([element x y]
|
||||
(.scrollBy ^js element x y))
|
||||
([x y]
|
||||
(scroll-by! js/window x y)))
|
||||
|
||||
(defn animate!
|
||||
([item keyframes duration] (animate! item keyframes duration nil))
|
||||
([item keyframes duration onfinish]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue