Last active
September 26, 2019 08:39
-
-
Save marekalgoud/233596e0c5f69945800cad14dbe93701 to your computer and use it in GitHub Desktop.
Revisions
-
marekalgoud revised this gist
Sep 26, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -8,7 +8,7 @@ export default (targets) => { const opacity = 1 const anim = anime.timeline({ easing: 'easeInOutSine', duration: 1000 }) anim.add({ -
marekalgoud created this gist
Sep 26, 2019 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,21 @@ import anime from 'animejs/lib/anime.es.js' export default (targets) => { targets.style.opacity = 0 targets.style.transform = 'translateY(100px)' const translateY = '0' const opacity = 1 const anim = anime.timeline({ easing: 'easeInOutSine', 1000 }) anim.add({ targets, opacity, translateY }) return anim.finished }