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,10 +6,10 @@ import { animDuration } from '../utils/store'
/*
** Transition In
*/
export const animateIn = () => {
export const animateIn = scope => {
// Each location
const locations = ScrollOut({
targets: '#locations_list .location',
targets: scope.querySelectorAll('.location'),
onShown (el) {
// Timeline
const tl = anime.timeline({