Page and components animations rework WIP
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-04-03 23:03:00 +02:00
parent 7e0d1e33fb
commit 462359fcf2
10 changed files with 147 additions and 261 deletions

View File

@@ -1,6 +1,5 @@
import anime from 'animejs'
import ScrollOut from 'scroll-out'
import { transitionNormal, transitionDelay } from 'utils/store'
import { animDuration, animDelay } from 'utils/store'
/*
@@ -8,18 +7,12 @@ import { transitionNormal, transitionDelay } from 'utils/store'
*/
export const animateIn = () => {
// Simple slide and fade on each part of the page
// const page = ScrollOut({
// once: true,
// targets: '.page',
// onShown (el) {
anime({
targets: document.querySelectorAll('.page__part'),
opacity: [0, 1],
translateY: [8, 0],
easing: 'easeOutQuart',
duration: transitionNormal,
delay: anime.stagger(220, { start: transitionDelay }),
duration: animDuration,
delay: anime.stagger(220, { start: animDelay }),
})
// }
// })
}