JavaScript animation engine
Update documentation
Julian Garnier2d214342da5c
diff --git a/documentation/examples/advanced-staggering-2.html b/documentation/examples/advanced-staggering-2.htmlindex 90715b32..172c77ef 100644--- a/documentation/examples/advanced-staggering-2.html+++ b/documentation/examples/advanced-staggering-2.html@@ -93,7 +93,7 @@nextIndex = anime.random(0, numberOfElements);- anime.setValue('.cursor', {+ anime.set('.cursor', {translateX: anime.stagger('-38px', {grid: [24, 11], from: index, axis: 'x'}),translateY: anime.stagger('-38px', {grid: [24, 11], from: index, axis: 'y'})});diff --git a/documentation/examples/advanced-staggering.html b/documentation/examples/advanced-staggering.htmlindex 941b6a3a..cfa8d372 100644--- a/documentation/examples/advanced-staggering.html+++ b/documentation/examples/advanced-staggering.html@@ -92,7 +92,7 @@nextIndex = anime.random(0, numberOfElements);- anime.setValue('.cursor', {+ anime.set('.cursor', {translateX: anime.stagger('-1rem', {grid: [16, 16], from: index, axis: 'x'}),translateY: anime.stagger('-1rem', {grid: [16, 16], from: index, axis: 'y'})});diff --git a/documentation/examples/anime-stagger-demo.html b/documentation/examples/anime-stagger-demo.htmlindex ce348915..728c72d6 100644--- a/documentation/examples/anime-stagger-demo.html+++ b/documentation/examples/anime-stagger-demo.html@@ -82,7 +82,7 @@delay: anime.stagger(10, {from: 'center'})}).add({- scale: anime.stagger([2.5, 1], {from: 'center', easing: 'easeInSine'}),+ scale: anime.stagger([2.5, 1], {from: 'center', easing: 'easeInOutCirc'}),translateX: anime.stagger([-200, 200]),translateY: anime.stagger([-200, 200]),rotate: 0,diff --git a/documentation/examples/anime-staggering-demo.html b/documentation/examples/anime-staggering-demo.htmlindex 6c6046a4..bec0e87a 100644--- a/documentation/examples/anime-staggering-demo.html+++ b/documentation/examples/anime-staggering-demo.html@@ -126,22 +126,29 @@anime({targets: '.easing-visualizer div',+ translateZ: 0,translateY: (() => {const keyframes = [];+ // keyframes.push({ value: 0, delay: stagger(.125) });+ // keyframes.push({ value: stagger([0, -400], {easing: 'steps(10)'}), delay: stagger(.125) });for (let ease in anime.penner) {keyframes.push({value: stagger([0, -400], {easing: ease}),delay: stagger(.125)});};- keyframes.push({ value: stagger([0, -400], {easing: 'steps(10)'}), delay: stagger(.125) });- keyframes.push({ value: 0, delay: stagger(.125) });return keyframes;})(),+ // translateY: {+ // value: stagger([0, -400], {easing:'easeInOutSine'}),+ // delay: stagger(.125)+ // },easing: 'easeInOutSine',- duration: 16000,+ duration: 6000,loop: true});+ console.log(anime.penner);+</script></html>