Fix pages and components animations
- Fix delays - Add the init back for TitleSite as it needs a delay for the page instance vs. loader
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import anime from 'animejs'
|
||||
import ScrollOut from 'scroll-out'
|
||||
import { animDelay } from 'utils/store'
|
||||
|
||||
|
||||
/*
|
||||
@@ -15,7 +16,7 @@ export const animateIn = (scope, init) => {
|
||||
tl.add({
|
||||
targets: scope.querySelectorAll('span, em span'),
|
||||
translateY: ['100%', 0],
|
||||
delay: anime.stagger(40),
|
||||
delay: anime.stagger(40, { start: init ? 0 : animDelay }),
|
||||
})
|
||||
|
||||
// On scroll animation
|
||||
|
||||
Reference in New Issue
Block a user