JavaScript animation engine
Examples update
Julian Garnierdfba4900c4fe
diff --git a/documentation/examples/anime-complex-properties.html b/documentation/examples/anime-complex-properties.htmlindex 613aeed4..c316593c 100644--- a/documentation/examples/anime-complex-properties.html+++ b/documentation/examples/anime-complex-properties.html@@ -37,6 +37,9 @@.box-shadow {background-color: transparent;}+ .clip-path {+ border-radius: 0;+ }</style></head><body>@@ -47,6 +50,7 @@<div class="rgba item color-09"></div><div class="calc item color-11"></div><div class="zero-value item color-02"></div>+ <div class="clip-path item color-04"></div><script>var boxShadow = anime({targets: '.box-shadow',@@ -101,6 +105,13 @@direction: 'alternate',easing: 'linear'});+ var clipPath = anime({+ targets: '.clip-path',+ clipPath: ['circle(0px at center)', 'circle(100px at center)'],+ loop: true,+ direction: 'alternate',+ easing: 'linear'+ });console.log(calc.animations[0]);</script></body>diff --git a/documentation/examples/anime-svg-lines-animations.html b/documentation/examples/anime-svg-lines-animations.htmlindex aca78e65..50fb3c94 100644--- a/documentation/examples/anime-svg-lines-animations.html+++ b/documentation/examples/anime-svg-lines-animations.html@@ -32,6 +32,9 @@width: 600px;height: 400px;}+ .anim path {+ stroke-width: 2;+ }.item {position: absolute;left: 0;@@ -47,7 +50,17 @@<body><div class="anim"><div class="item"></div>-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 600 400"><g fill="none" fill-rule="evenodd" stroke-width="2"><circle cx="300" cy="100" r="50" stroke="#FED28B"/><polygon stroke="#D1FA9E" points="500 130.381 464.772 149 471.5 109.563 443 81.634 482.386 75.881 500 40 517.614 75.881 557 81.634 528.5 109.563 535.228 149"/><polyline stroke="#7BE6D6" points="63.053 343 43 281.815 95.5 244 95.5 244 148 281.815 127.947 343"/><rect width="98" height="98" x="451" y="251" stroke="#C987FE" rx="25"/><path stroke="#F96F82" d="M51.5 51.5l98 98m0-98l-98 98" stroke-linecap="square"/><path class="path" stroke="#4E7EFC" d="M250 300a50 50 0 0 1 100 0v25h-25v-25a25 25 0 1 0-25 25v25a50 50 0 0 1-50-50z"/></g></svg>+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 600 400">+ <g fill="none" fill-rule="evenodd" stroke-width="2">+ <line class="line-1" stroke="#F96F82" x1="51.5" x2="149.5" y1="51.5" y2="149.5" stroke-linecap="square"/>+ <line class="line-2s" stroke="#F96F82" x1="149.5" x2="51.5" y1="51.5" y2="149.5" stroke-linecap="square"/>+ <circle cx="300" cy="100" r="50" stroke="#FED28B"/>+ <polygon stroke="#D1FA9E" points="500 130.381 464.772 149 471.5 109.563 443 81.634 482.386 75.881 500 40 517.614 75.881 557 81.634 528.5 109.563 535.228 149"/>+ <polyline stroke="#7BE6D6" points="63.053 343 43 281.815 95.5 244 95.5 244 148 281.815 127.947 343"/>+ <path class="path" stroke="#4E7EFC" d="M250 300a50 50 0 0 1 100 0v25h-25v-25a25 25 0 1 0-25 25v25a50 50 0 0 1-50-50z"/>+ <rect width="98" height="98" x="451" y="251" stroke="#C987FE" rx="25"/>+ </g>+ </svg></div><script>anime({@@ -63,7 +76,6 @@targets: '.item',translateX: pathEl('x'),translateY: pathEl('y'),- rotate: pathEl('angle'),easing: 'easeInOutSine',duration: 1500,direction: 'alternate',