Scope animations

This commit is contained in:
2020-03-10 21:16:21 +01:00
parent c8bc7f39c8
commit a60a67a892
9 changed files with 39 additions and 27 deletions

View File

@@ -6,11 +6,11 @@ import { animDuration } from '../utils/store'
/*
** Transition In
*/
export const animateIn = callback => {
export const animateIn = scope => {
// On scroll animation
const title = ScrollOut({
once: true,
targets: '.title-location--inline',
targets: scope,
onShown (el) {
// Each letters
anime({