Add lazy loading to dashboard templates

This commit is contained in:
AzazelN28 2024-04-02 15:47:54 +02:00 committed by Alonso Torres
parent 04fe8f8960
commit 7c1e8a753f
3 changed files with 36 additions and 40 deletions

View file

@ -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]