JavaScript animation engine
Update site / documentation
Julian Garnierabb726d09107
diff --git a/documentation/assets/css/documentation.css b/documentation/assets/css/documentation.cssindex 04911001..30b6fc87 100644--- a/documentation/assets/css/documentation.css+++ b/documentation/assets/css/documentation.css@@ -32,7 +32,7 @@padding: 10px 0 10px 55px;color: white;text-decoration: none;- background-image: url(../img/anime-js-v2-logo-white.png);+ background-image: url(../img/icons/icon-doc.png);background-size: 32px;background-position: 12px 13px;background-repeat: no-repeat;diff --git a/documentation/assets/css/site.css b/documentation/assets/css/site.cssnew file mode 100644index 00000000..0dcc8529--- /dev/null+++ b/documentation/assets/css/site.css@@ -0,0 +1,172 @@+html {+ overflow: hidden;+}++body {+ opacity: 0;+ display: flex;+ flex-direction: column;+ justify-content: center;+ text-transform: uppercase;+ font-size: 12px;+ letter-spacing: 2px;+ -webkit-tap-highlight-color: rgba(0,0,0,0);+ user-select: none;+}++body.ready { opacity: 1; }++.fireworks {+ position: absolute;+ top: 0;+ left: 0;+ widows: 100%;+ height: 100%;+}++.logo-animation {+ display: flex;+ align-items: center;+ justify-content: center;+ width: 100%;+ margin-top: -40px;+}++.letters {+ position: relative;+ display: flex;+ width: 682px;+ height: 162px;+}++.letter {+ position: relative;+ width: 162px;+ height: 162px;+}++.letter:not(:first-child) {+ margin-left: -42px;+}++.letter-i {+ z-index: 1;+ width: 82px;+ transform-origin: 100% 50%;+}++.dot {+ position: absolute;+ width: 42px;+ height: 42px;+ transform: scale(0);+}++.dot-i {+ top: 0;+ left: 240px;+}++.dot-e {+ bottom: 0;+ right: 0;+}++.logo-icon {+ display: flex;+ position: absolute;+ left: 230px;+ top: -10px;+ width: 222px;+ height: 62px;+}++.icon {+ width: 62px;+ height: 62px;+ opacity: 0;+ cursor: pointer;+}++.icon-text {+ position: absolute;+ top: 60px;+ left: 60px;+ width: 160px;+ height: 62px;+}++.icon-text path,+.icon-text polygon {+ opacity: 0;+}++.info {+ text-align: center;+}++.description {+ opacity: 0;+ margin-top: -20px;+}++.links {+ display: flex;+ flex-direction: column;+ justify-content: center;+ align-items: center;+ margin-top: 20px;+}++@media (min-width: 700px) {+ .links {+ flex-direction: row;++ }+}++.button {+ opacity: 0;+ position: relative;+ display: flex;+ flex-direction: column;+ justify-content: center;+ width: 180px;+ height: 60px;+ text-decoration: none;+}++.button.blue {+ color: #5E89FB;+}++.button.green {+ color: #18F38C;+}++.button svg {+ position: absolute;+ left: 0;+ top: 0;+ right: 0;+ bottom: 0;+ stroke-width: 1;+ fill: none;+ fill-rule: evenodd;+ stroke: currentColor;+}++.credits {+ opacity: 0;+ margin-top: 20px;+ color: #979797;+}++.credits a {+ color: currentColor;+ text-decoration: none;+}++.credits a:hover {+ text-decoration: underline;+}\ No newline at end of filediff --git a/documentation/assets/img/apple-touch-icon.png b/documentation/assets/img/apple-touch-icon.pngdeleted file mode 100644index ccbf06d3..00000000Binary files a/documentation/assets/img/apple-touch-icon.png and /dev/null differdiff --git a/documentation/assets/img/favicon.png b/documentation/assets/img/favicon.pngdeleted file mode 100644index b0a48cef..00000000Binary files a/documentation/assets/img/favicon.png and /dev/null differdiff --git a/documentation/assets/img/icons/apple-touch-icon.png b/documentation/assets/img/icons/apple-touch-icon.pngnew file mode 100644index 00000000..06dab75bBinary files /dev/null and b/documentation/assets/img/icons/apple-touch-icon.png differdiff --git a/documentation/assets/img/icons/favicon.png b/documentation/assets/img/icons/favicon.pngnew file mode 100644index 00000000..ab83b420Binary files /dev/null and b/documentation/assets/img/icons/favicon.png differdiff --git a/documentation/assets/img/anime-js-v2-logo-white.png b/documentation/assets/img/icons/icon-doc.pngsimilarity index 100%rename from documentation/assets/img/anime-js-v2-logo-white.pngrename to documentation/assets/img/icons/icon-doc.pngdiff --git a/documentation/assets/img/icons/og.png b/documentation/assets/img/icons/og.pngnew file mode 100644index 00000000..a6e8aa8eBinary files /dev/null and b/documentation/assets/img/icons/og.png differdiff --git a/documentation/assets/img/icons/twitter.png b/documentation/assets/img/icons/twitter.pngnew file mode 100644index 00000000..4721d2bdBinary files /dev/null and b/documentation/assets/img/icons/twitter.png differdiff --git a/documentation/assets/img/og-image.png b/documentation/assets/img/og-image.pngdeleted file mode 100644index 625a596c..00000000Binary files a/documentation/assets/img/og-image.png and /dev/null differdiff --git a/documentation/examples/anime.1.0.js b/documentation/assets/js/anime.1.0.jssimilarity index 100%rename from documentation/examples/anime.1.0.jsrename to documentation/assets/js/anime.1.0.jsdiff --git a/documentation/examples/anime.1.3.js b/documentation/assets/js/anime.1.3.jssimilarity index 100%rename from documentation/examples/anime.1.3.jsrename to documentation/assets/js/anime.1.3.jsdiff --git a/documentation/assets/js/site.js b/documentation/assets/js/site.jsnew file mode 100644index 00000000..85ef35d1--- /dev/null+++ b/documentation/assets/js/site.js@@ -0,0 +1,357 @@+var fireworks = (function() {++ function getFontSize() {+ return parseFloat(getComputedStyle(document.documentElement).fontSize);+ }++ var canvasEl = document.querySelector('.fireworks');+ var ctx = canvasEl.getContext('2d');+ var tap = ('ontouchstart' in window || navigator.msMaxTouchPoints) ? 'touchstart' : 'mousedown';+ var numberOfParticules = 24;+ var distance = 200;+ var x = 0;+ var y = 0;+ var animations = [];+ var targets = [];+ var colors = ['#FF1461', '#18FF92', '#5A87FF', '#FBF38C'];++ function setCanvasSize() {+ canvasEl.width = window.innerWidth * 2;+ canvasEl.height = window.innerHeight * 2;+ canvasEl.style.width = window.innerWidth + 'px';+ canvasEl.style.height = window.innerHeight + 'px';+ canvasEl.getContext('2d').scale(2, 2);+ }++ function updateCoords(e) {+ x = e.clientX || e.touches[0].clientX;+ y = e.clientY || e.touches[0].clientY;+ }++ function createCircle(x,y) {+ var p = {};+ p.x = x;+ p.y = y;+ p.color = colors[anime.random(0, colors.length - 1)];+ p.color = '#FFF';+ p.radius = 0.1;+ p.alpha = 1;+ p.lineWidth = 6;+ p.draw = function() {+ ctx.globalAlpha = p.alpha;+ ctx.beginPath();+ ctx.arc(p.x, p.y, p.radius, 0, 2 * Math.PI, true);+ ctx.lineWidth = p.lineWidth;+ ctx.strokeStyle = p.color;+ ctx.stroke();+ ctx.globalAlpha = 1;+ }+ return p;+ }++ function createParticule(x,y) {+ var p = {};+ p.x = x;+ p.y = y;+ p.color = colors[anime.random(0, colors.length - 1)];+ p.radius = anime.random(getFontSize(), getFontSize() * 2.25);+ p.draw = function() {+ ctx.beginPath();+ ctx.arc(p.x, p.y, p.radius, 0, 2 * Math.PI, true);+ ctx.fillStyle = p.color;+ ctx.fill();+ }+ return p;+ }++ function createParticles(x,y) {+ var particules = [];+ for (var i = 0; i < numberOfParticules; i++) {+ var p = createParticule(x, y);+ particules.push(p);+ targets.push(p);+ }+ return particules;+ }++ function removeTargets(animation) {+ for (var i = 0; i < animation.animatables.length; i++) {+ var index = targets.indexOf(animation.animatables[i].target);+ if (index > -1) targets.splice(index, 1);+ }+ }++ function removeAnimation(animation) {+ removeTargets(animation);+ var index = animations.indexOf(animation);+ if (index > -1) animations.splice(index, 1);+ if (!animations.length) mainLoop.pause();+ }++ function getParticulePos(p) {+ var angle = anime.random(0, 360) * Math.PI / 180;+ var radius = anime.random(-distance, distance);+ return {+ x: p.x + radius * Math.cos(angle),+ y: p.y + radius * Math.sin(angle)+ }+ }++ function animateParticules(x, y) {+ var particules = createParticles(x, y);+ var circle = createCircle(x, y);+ targets.push(circle);+ particules.forEach(function(p) {+ var position = getParticulePos(p);+ var particuleAnimation = anime({+ targets: p,+ x: position.x,+ y: position.y,+ radius: 0.1,+ duration: function() { return anime.random(1200, 1800); },+ easing: 'easeOutExpo',+ complete: removeAnimation+ });+ animations.push(particuleAnimation);+ });+ var circleAnimation = anime({+ targets: circle,+ radius: function() { return anime.random(getFontSize() * 8.75, getFontSize() * 11.25); },+ lineWidth: 0,+ alpha: {+ value: 0,+ easing: 'linear',+ duration: function() { return anime.random(400, 600); }+ },+ duration: function() { return anime.random(1200, 1800); },+ easing: 'easeOutExpo',+ complete: removeAnimation+ });+ animations.push(circleAnimation);+ }++ var mainLoop = anime({+ duration: Infinity,+ update: function() {+ ctx.clearRect(0, 0, canvasEl.width, canvasEl.height);+ for (var t = 0; t < targets.length; t++ ) {+ targets[t].draw();+ }+ }+ });++ document.addEventListener(tap, function(e) {+ updateCoords(e);+ mainLoop.play();+ animateParticules(x, y);+ ga('send', 'event', 'Fireworks', 'Click');+ }, false);++ window.addEventListener('resize', setCanvasSize, false);++ return {+ setCanvasSize: setCanvasSize,+ animateParticules: animateParticules+ }++})();++var logoAnimation = (function() {++ var logoEl = document.querySelector('.logo-animation');+ var buttonEls = document.querySelectorAll('.button');+ var pathEls = document.querySelectorAll('.logo-animation path:not(.icon-curve)');+ var innerWidth = window.innerWidth;+ var maxWidth = 740;+ var logoScale = innerWidth <= maxWidth ? innerWidth / maxWidth : 1;+ var logoTimeline = anime.timeline({ autoplay: false });++ logoEl.style.transform = 'translateY(50px) scale('+logoScale+')';++ function createBouncyButton(el) {+ var pathEl = el.querySelector('path');+ var spanEl = el.querySelector('span');+ pathEl.setAttribute('stroke-dashoffset', anime.setDashoffset(pathEl));+ var animation = anime.timeline({+ autoplay: false+ });+ animation+ .add({+ targets: pathEl,+ d: 'M10,10 C10,10 50,7 90,7 C130,7 170,10 170,10 C170,10 172,20 172,30 C172,40 170,50 170,50 C170,50 130,53 90,53 C50,53 10,50 10,50 C10,50 8,40 8,30 C8,20 10,10 10,10 Z',+ duration: 150,+ easing: 'easeInOutSine',+ offset: 0+ })+ .add({+ targets: spanEl,+ scale: 1.1,+ duration: 150,+ easing: 'easeInOutSine',+ offset: 0+ })+ el.onmouseenter = function() {+ if (animation.reversed) animation.reverse();+ animation.play();+ }+ el.onmouseleave = function() {+ if (!animation.reversed) animation.reverse();+ animation.play();+ }+ }++ for (var i = 0; i < buttonEls.length; i++) {+ var el = buttonEls[i];+ createBouncyButton(el);+ }++ for (var i = 0; i < pathEls.length; i++) {+ var el = pathEls[i];+ el.setAttribute('stroke-dashoffset', anime.setDashoffset(el));+ }++ logoTimeline+ .add({+ targets: '.dot-e',+ translateX: [+ { value: -600, duration: 520, delay: 200, easing: 'easeInQuart' },+ { value: [-100, 0], duration: 500, delay: 1000, easing: 'easeOutQuart' }+ ],+ scale: [+ { value: [0, 1], duration: 200, easing: 'easeOutBack' },+ { value: 0, duration: 20, delay: 500, easing: 'easeInQuart' },+ { value: 1, duration: 200, delay: 1000, easing: 'easeOutQuart' },+ { value: 0, duration: 400, delay: 500, easing: 'easeInBack' }+ ],+ offset: 0+ })+ .add({+ targets: '.dot-i',+ translateY: { value: [-200, 0], duration: 500, elasticity: 400 },+ scale: [+ { value: [0, 1], duration: 100, easing: 'easeOutQuart' },+ { value: 0, duration: 400, delay: 1400, easing: 'easeInBack' }+ ],+ delay: 1200,+ offset: 0+ })+ .add({+ targets: '.fill.in',+ strokeDashoffset: {+ value: [anime.setDashoffset, 0],+ duration: 600,+ delay: function(el, i, t) { return 700 + ( i * 100 ); },+ easing: 'easeOutQuart'+ },+ stroke: {+ value: ['#FFF', function(el) { return anime.getValue(el.parentNode, 'stroke') } ],+ duration: 500,+ delay: 500,+ easing: 'easeInQuad'+ },+ opacity: {+ value: 0,+ duration: 1,+ delay: function(el, i, t) { return 1900 + ( i * 80 ); },+ },+ offset: 0+ })+ .add({+ targets: '.fill.out',+ strokeDashoffset: [+ { value: [anime.setDashoffset, anime.setDashoffset], duration: 1890 },+ {+ value: [0, anime.setDashoffset],+ duration: 800,+ delay: function(el, i) { return (i * 80); },+ easing: 'easeInQuart'+ }+ ],+ offset: 0+ })+ .add({+ targets: '.line.out',+ strokeDashoffset: {+ value: [0, anime.setDashoffset],+ duration: 1200,+ delay: function(el, i, t) { return 2500 + ( i * 100 ); },+ easing: 'easeInQuart'+ },+ strokeWidth: {+ value: [0, 2],+ delay: function(el, i, t) { return 2000 + ( i * 100 ); },+ duration: 200,+ easing: 'linear'+ },+ offset: 0+ })+ .add({+ targets: '.icon',+ opacity: { value: 1, duration: 10, delay: 2800, easing: 'linear' },+ translateY: { value: 60, duration: 800 },+ delay: 4200,+ offset: 0+ })+ .add({+ targets: '.icon-line',+ strokeDashoffset: [+ { value: [anime.setDashoffset, anime.setDashoffset], duration: 3000 },+ { value: 0, duration: 1200, easing: 'easeInOutQuart' }+ ],+ strokeWidth: {+ value: [8, 2],+ delay: 3000,+ duration: 800,+ easing: 'easeInQuad'+ },+ stroke: {+ value: ['#FFF', function(el) { return anime.getValue(el, 'stroke') } ],+ duration: 800,+ delay: 3400,+ easing: 'easeInQuad'+ },+ offset: 0+ })+ .add({+ targets: ['.icon-text path', '.icon-text polygon'],+ translateY: [50, 0],+ opacity: { value: [0, 1], duration: 100, easing: 'linear' },+ delay: function(el, i, t) { return 4200 + ( i * 20 ); },+ offset: 0+ })+ .add({+ targets: ['.logo-animation', '.description', '.button', '.credits'],+ translateY: [50, 0],+ scale: 1,+ opacity: 1,+ easing: 'easeOutExpo',+ delay: function(el, i) {+ return i * 150+ },+ offset: '-=250'+ })+ .add({+ targets: '.button path',+ strokeDashoffset: [anime.setDashoffset, 0],+ easing: 'easeInOutQuart',+ duration: 500,+ delay: function(el, i) { return i * 250; },+ offset: '-=1250'+ })+++ function init() {+ document.body.classList.add('ready');+ logoTimeline.play();+ }++ return {+ init: init+ }++})();++window.onload = function() {+ logoAnimation.init();+ fireworks.setCanvasSize();+}\ No newline at end of filediff --git a/documentation/examples/anime-DOM-stress-test.html b/documentation/examples/anime-DOM-stress-test.htmlindex c26a9a3f..cbf5710a 100644--- a/documentation/examples/anime-DOM-stress-test.html+++ b/documentation/examples/anime-DOM-stress-test.html@@ -1,13 +1,24 @@<!DOCTYPE html><html><head>- <title>Stress test | anime.js</title>+ <title>DOM stress test | anime.js</title><meta charset="utf-8">- <link rel="icon" type="image/png" href="../assets/img/favicon.png" />+ <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">+ <meta property="og:title" content="anime.js">+ <meta property="og:url" content="http://anime-js.com">+ <meta property="og:description" content="Javascript Animation Engine">+ <meta property="og:image" content="../assets/img/icons/og.png">+ <meta name="twitter:card" content="summary">+ <meta name="twitter:title" content="anime.js">+ <meta name="twitter:site" content="@juliangarnier">+ <meta name="twitter:description" content="Javascript Animation Engine">+ <meta name="twitter:image" content="../assets/img/icons/twitter.png">+ <link rel="apple-touch-icon-precomposed" href="../assets/img/icons/apple-touch-icon.png">+ <link rel="icon" type="image/png" href="../assets/img/icons/favicon.png" ><link href="../assets/css/anime.css" rel="stylesheet"><script src="../../anime.js"></script>- <!-- <script src="anime.1.3.js"></script> -->- <!-- <script src="anime.1.0.js"></script> -->+ <!-- <script src="../assets/js/anime.1.3.js"></script> -->+ <!-- <script src="../assets/js/anime.1.0.js"></script> --><style>body {diff --git a/documentation/examples/canvas-fireworks.html b/documentation/examples/anime-canvas-fireworks.htmlsimilarity index 80%rename from documentation/examples/canvas-fireworks.htmlrename to documentation/examples/anime-canvas-fireworks.htmlindex a6ee8272..be4e43c1 100644--- a/documentation/examples/canvas-fireworks.html+++ b/documentation/examples/anime-canvas-fireworks.html@@ -3,78 +3,20 @@<head><title>Canvas fireworks | anime.js</title><meta charset="utf-8">- <link rel="icon" type="image/png" href="../assets/img/favicon.png" />+ <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">+ <meta property="og:title" content="anime.js">+ <meta property="og:url" content="http://anime-js.com">+ <meta property="og:description" content="Javascript Animation Engine">+ <meta property="og:image" content="../assets/img/icons/og.png">+ <meta name="twitter:card" content="summary">+ <meta name="twitter:title" content="anime.js">+ <meta name="twitter:site" content="@juliangarnier">+ <meta name="twitter:description" content="Javascript Animation Engine">+ <meta name="twitter:image" content="../assets/img/icons/twitter.png">+ <link rel="apple-touch-icon-precomposed" href="../assets/img/icons/apple-touch-icon.png">+ <link rel="icon" type="image/png" href="../assets/img/icons/favicon.png"><link href="../assets/css/anime.css" rel="stylesheet"><script src="../../anime.js"></script>- <style>- .logo-animation {- display: flex;- align-items: center;- justify-content: center;- width: 100%;- height: 100%;- margin-top: -40px;- }- .letters {- position: relative;- display: flex;- width: 682px;- height: 162px;- }- .letter {- position: relative;- width: 162px;- height: 162px;- }- .letter:not(:first-child) {- margin-left: -42px;- }- .letter-i {- z-index: 1;- width: 82px;- transform-origin: 100% 50%;- }- .dot {- position: absolute;- width: 42px;- height: 42px;- }- .dot-i {- top: 0;- left: 240px;- }- .dot-e {- bottom: 0;- right: 0;- }- .logo-icon {- display: flex;- position: absolute;- left: 230px;- top: -10px;- width: 222px;- height: 62px;- }- .icon {- width: 62px;- height: 62px;- opacity: 0;- }- .icon-text {- position: absolute;- top: 60px;- left: 60px;- width: 160px;- height: 62px;- }- .icon-text path,- .icon-text polygon {- opacity: 0;- }- /*.letter, .dot {- mix-blend-mode: lighten;- }*/- </style></head><body><canvas></canvas>diff --git a/documentation/examples/direction-testing.html b/documentation/examples/anime-directions-testing.htmlsimilarity index 78%rename from documentation/examples/direction-testing.htmlrename to documentation/examples/anime-directions-testing.htmlindex 8ea2a53c..32d5137c 100644--- a/documentation/examples/direction-testing.html+++ b/documentation/examples/anime-directions-testing.html@@ -1,9 +1,20 @@<!DOCTYPE html><html><head>- <title>Diretion Testing | anime.js</title>+ <title>Diretions Testing | anime.js</title><meta charset="utf-8">- <link rel="icon" type="image/png" href="../assets/img/favicon.png" />+ <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">+ <meta property="og:title" content="anime.js">+ <meta property="og:url" content="http://anime-js.com">+ <meta property="og:description" content="Javascript Animation Engine">+ <meta property="og:image" content="../assets/img/icons/og.png">+ <meta name="twitter:card" content="summary">+ <meta name="twitter:title" content="anime.js">+ <meta name="twitter:site" content="@juliangarnier">+ <meta name="twitter:description" content="Javascript Animation Engine">+ <meta name="twitter:image" content="../assets/img/icons/twitter.png">+ <link rel="apple-touch-icon-precomposed" href="../assets/img/icons/apple-touch-icon.png">+ <link rel="icon" type="image/png" href="../assets/img/icons/favicon.png"><link href="../assets/css/anime.css" rel="stylesheet"><script src="../../anime.js"></script><style>@@ -103,16 +114,16 @@direction: 'alternate'});- createTest('Normal 1 times', 1, {+ createTest('Normal 1 time', 1, {loop: 1});- createTest('Reverse 1 times', 1, {+ createTest('Reverse 1 time', 1, {direction: 'reverse',loop: 1});- createTest('Alternate 1 times', 1, {+ createTest('Alternate 1 time (equal 2)', 1, {direction: 'alternate',loop: 1});diff --git a/documentation/examples/ease-visualizer.html b/documentation/examples/anime-ease-visualizer.htmlsimilarity index 91%rename from documentation/examples/ease-visualizer.htmlrename to documentation/examples/anime-ease-visualizer.htmlindex f127870b..1639087f 100644--- a/documentation/examples/ease-visualizer.html+++ b/documentation/examples/anime-ease-visualizer.html@@ -3,7 +3,18 @@<head><title>Ease visualizer | anime.js</title><meta charset="utf-8">- <link rel="icon" type="image/png" href="../assets/img/favicon.png" />+ <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">+ <meta property="og:title" content="anime.js">+ <meta property="og:url" content="http://anime-js.com">+ <meta property="og:description" content="Javascript Animation Engine">+ <meta property="og:image" content="../assets/img/icons/og.png">+ <meta name="twitter:card" content="summary">+ <meta name="twitter:title" content="anime.js">+ <meta name="twitter:site" content="@juliangarnier">+ <meta name="twitter:description" content="Javascript Animation Engine">+ <meta name="twitter:image" content="../assets/img/icons/twitter.png">+ <link rel="apple-touch-icon-precomposed" href="../assets/img/icons/apple-touch-icon.png">+ <link rel="icon" type="image/png" href="../assets/img/icons/favicon.png"><link href="../assets/css/anime.css" rel="stylesheet"><script src="../../anime.js"></script><style>diff --git a/documentation/examples/anime-logo-animation.html b/documentation/examples/anime-logo-animation.htmlindex 627dc3b8..fa1f1ff2 100644--- a/documentation/examples/anime-logo-animation.html+++ b/documentation/examples/anime-logo-animation.html@@ -3,16 +3,35 @@<head><title>Anime logo animation | anime.js</title><meta charset="utf-8">- <link rel="icon" type="image/png" href="../assets/img/favicon.png" />+ <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">+ <meta property="og:title" content="anime.js">+ <meta property="og:url" content="http://anime-js.com">+ <meta property="og:description" content="Javascript Animation Engine">+ <meta property="og:image" content="../assets/img/icons/og.png">+ <meta name="twitter:card" content="summary">+ <meta name="twitter:title" content="anime.js">+ <meta name="twitter:site" content="@juliangarnier">+ <meta name="twitter:description" content="Javascript Animation Engine">+ <meta name="twitter:image" content="../assets/img/icons/twitter.png">+ <link rel="apple-touch-icon-precomposed" href="../assets/img/icons/apple-touch-icon.png">+ <link rel="icon" type="image/png" href="../assets/img/icons/favicon.png"><link href="../assets/css/anime.css" rel="stylesheet"><script src="../../anime.js"></script><style>+ body {+ opacity: 0;+ display: flex;+ flex-direction: column;+ justify-content: center;+ }+ body.ready {+ opacity: 1;+ }.logo-animation {display: flex;align-items: center;justify-content: center;width: 100%;- height: 100%;margin-top: -40px;}.letters {@@ -72,9 +91,6 @@.icon-text polygon {opacity: 0;}- /*.letter, .dot {- mix-blend-mode: lighten;- }*/</style></head><body>@@ -180,23 +196,14 @@</div><script>- var pathEls = document.querySelectorAll('path:not(.icon-curve)');-- for (var i = 0; i < pathEls.length; i++) {- var el = pathEls[i];- el.setAttribute('stroke-dashoffset', anime.setDashoffset(el));- }-- var logoAnimation = anime.timeline({+ var logoTimeline = anime.timeline({loop: true,direction: 'alternate',- update: function(anim) {- // console.log(anim.progress, anim.currentTime);- }+ autoplay: false});- logoAnimation.add([- {+ logoTimeline+ .add({targets: '.dot-e',translateX: [{ value: -600, duration: 520, delay: 200, easing: 'easeInQuart' },@@ -209,7 +216,8 @@{ value: 0, duration: 400, delay: 500, easing: 'easeInBack' }],offset: 0- }, {+ })+ .add({targets: '.dot-i',translateY: { value: [-200, 0], duration: 500, elasticity: 400 },scale: [@@ -218,7 +226,8 @@],delay: 1200,offset: 0- }, {+ })+ .add({targets: '.fill.in',strokeDashoffset: {value: [anime.setDashoffset, 0],@@ -238,7 +247,8 @@delay: function(el, i, t) { return 1900 + ( i * 80 ); },},offset: 0- }, {+ })+ .add({targets: '.fill.out',strokeDashoffset: [{ value: [anime.setDashoffset, anime.setDashoffset], duration: 1890 },@@ -250,7 +260,8 @@}],offset: 0- }, {+ })+ .add({targets: '.line.out',strokeDashoffset: {value: [0, anime.setDashoffset],@@ -265,13 +276,15 @@easing: 'linear'},offset: 0- }, {+ })+ .add({targets: '.icon',opacity: { value: 1, duration: 10, delay: 2800, easing: 'linear' },translateY: { value: 60, duration: 800 },delay: 4200,offset: 0- }, {+ })+ .add({targets: '.icon-line',strokeDashoffset: [{ value: [anime.setDashoffset, anime.setDashoffset], duration: 3000 },@@ -290,14 +303,21 @@easing: 'easeInQuad'},offset: 0- }, {+ })+ .add({targets: ['.icon-text path', '.icon-text polygon'],translateY: [50, 0],opacity: { value: [0, 1], duration: 100, easing: 'linear' },delay: function(el, i, t) { return 4200 + ( i * 20 ); },offset: 0+ })++ function init() {+ document.body.classList.add('ready');+ logoTimeline.play();}- ]);++ window.onload = init;</script><script src="../assets/js/stats.js"></script>diff --git a/documentation/examples/anime-mgs-logo-animation.html b/documentation/examples/anime-mgs-logo-animation.htmlindex 696422ec..6fd82a86 100644--- a/documentation/examples/anime-mgs-logo-animation.html+++ b/documentation/examples/anime-mgs-logo-animation.html@@ -3,7 +3,18 @@<head><title>Anime MGS logo animation | anime.js</title><meta charset="utf-8">- <link rel="icon" type="image/png" href="../assets/img/favicon.png" />+ <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">+ <meta property="og:title" content="anime.js">+ <meta property="og:url" content="http://anime-js.com">+ <meta property="og:description" content="Javascript Animation Engine">+ <meta property="og:image" content="../assets/img/icons/og.png">+ <meta name="twitter:card" content="summary">+ <meta name="twitter:title" content="anime.js">+ <meta name="twitter:site" content="@juliangarnier">+ <meta name="twitter:description" content="Javascript Animation Engine">+ <meta name="twitter:image" content="../assets/img/icons/twitter.png">+ <link rel="apple-touch-icon-precomposed" href="../assets/img/icons/apple-touch-icon.png">+ <link rel="icon" type="image/png" href="../assets/img/icons/favicon.png"><link href="../assets/css/anime.css" rel="stylesheet"><script src="../../anime.js"></script><style>diff --git a/documentation/examples/anime-playback.html b/documentation/examples/anime-playback.htmldeleted file mode 100644index f3fe0dca..00000000--- a/documentation/examples/anime-playback.html+++ /dev/null@@ -1,98 +0,0 @@-<!DOCTYPE html>-<html>-<head>- <title>Testing | anime.js</title>- <meta charset="utf-8">- <link rel="icon" type="image/png" href="../assets/img/favicon.png" />- <link href="../assets/css/anime.css" rel="stylesheet">- <script src="../../anime.js"></script>- <style>-- .demo {- padding: 20px;- }-- .row {- width: 100%;- }-- .item {- width: 2rem;- height: 2rem;- margin: 1rem;- background: currentColor;- border-radius: 50%;- }-- </style>-</head>-<body>- <div class="row demo timeline">- <h2>Timeline</h2>- <div class="row">- <div class="item color-04"></div>- <div class="item color-04"></div>- </div>- <div class="row controls">- <button class="play">PLAY</button>- <button class="pause">PAUSE</button>- <button class="restart">RESTART</button>- <input class="progress" type="range" min="0" max="100" step=".1" value="0"></input>- </div>- <script>- (function() {- var progressEl = document.querySelector('.timeline .progress');- var playEl = document.querySelector('.timeline .play');- var pauseEl = document.querySelector('.timeline .pause');- var restartEl = document.querySelector('.timeline .restart');-- var simpleTL = new anime.timeline({- loop: 3,- direction: 'alternate',- update: function(a) { progressEl.value = a.progress },- });-- simpleTL.add({- targets: '.timeline .item',- translateX: 200,- delay: function(el, i) { return 1000 + (50 * i); },- begin: function(a) {- a.animatables.forEach(function(ani) {- ani.target.classList.add('color-08');- });- },- complete: function(a) {- a.animatables.forEach(function(ani) {- ani.target.classList.remove('color-08');- });- }- });-- simpleTL.add({- targets: '.timeline .item',- translateX: [200, 400],- scale: 1.5,- delay: function(el, i) { return 1000 + (50 * i); },- begin: function(a) {- a.animatables.forEach(function(ani) {- ani.target.classList.add('color-12');- });- },- complete: function(a) {- a.animatables.forEach(function(ani) {- ani.target.classList.remove('color-12');- });- }- });-- playEl.onclick = simpleTL.play;- pauseEl.onclick = simpleTL.pause;- restartEl.onclick = simpleTL.restart;- progressEl.oninput = function() {- simpleTL.seek((progressEl.value * simpleTL.duration) / 100);- }- })();- </script>- </div>-</body>-</html>diff --git a/documentation/examples/anime-svg-path.html b/documentation/examples/anime-svg-line-drawing.htmlsimilarity index 94%rename from documentation/examples/anime-svg-path.htmlrename to documentation/examples/anime-svg-line-drawing.htmlindex e494c704..f1af4ce4 100644--- a/documentation/examples/anime-svg-path.html+++ b/documentation/examples/anime-svg-line-drawing.html@@ -1,9 +1,20 @@<!DOCTYPE html><html><head>- <title>SVG | anime.js</title>+ <title>SVG line drawing | anime.js</title><meta charset="utf-8">- <link rel="icon" type="image/png" href="../assets/img/favicon.png" />+ <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">+ <meta property="og:title" content="anime.js">+ <meta property="og:url" content="http://anime-js.com">+ <meta property="og:description" content="Javascript Animation Engine">+ <meta property="og:image" content="../assets/img/icons/og.png">+ <meta name="twitter:card" content="summary">+ <meta name="twitter:title" content="anime.js">+ <meta name="twitter:site" content="@juliangarnier">+ <meta name="twitter:description" content="Javascript Animation Engine">+ <meta name="twitter:image" content="../assets/img/icons/twitter.png">+ <link rel="apple-touch-icon-precomposed" href="../assets/img/icons/apple-touch-icon.png">+ <link rel="icon" type="image/png" href="../assets/img/icons/favicon.png"><link href="../assets/css/anime.css" rel="stylesheet"><script src="../../anime.js"></script><style>diff --git a/documentation/examples/anime-svg.html b/documentation/examples/anime-svg.htmldeleted file mode 100644index c89cf5d4..00000000--- a/documentation/examples/anime-svg.html+++ /dev/null@@ -1,96 +0,0 @@-<!DOCTYPE html>-<html>-<head>- <title>SVG | anime.js</title>- <meta charset="utf-8">- <link rel="icon" type="image/png" href="../assets/img/favicon.png" />- <link href="../assets/css/anime.css" rel="stylesheet">- <script src="../../anime.js"></script>- <style>- body {- display: flex;- align-items: center;- justify-content: center;- position: absolute;- width: 100%;- height: 100%;- }- .path-anim {- position: relative;- width: 400px;- height: 200px;- }- .el {- position: absolute;- top: 0;- left: 0;- width: 12px;- height: 12px;- margin: -6px 0 0 -6px;- background: white;- }- </style>-</head>-<body>- <div class="row demo timeline">- <div class="path-anim color-06">- <svg viewBox="0 0 400 200" fill="none" stroke="currentColor" stroke-width="4">- <path d="M20 100 60 100 80 120 100 80 120 140 140 60 160 160 180 40 200 180 220 20 240 160 260 40 280 140 300 60 320 120 340 100 380 100"/>- </svg>- <div class="el" style="transform: translateX(20px) translateY(100px)"></div>- </div>- <script>- (function() {-- function generateDots() {- var currentX = 70;- var d = 'M20 100 50 100 60 ';- for (var i = 0; i < 13; i++) {- var highY = anime.random(5, 100);- d+= 100 - highY + ' ' + currentX + ' ';- currentX += 10;- d+= 100 + highY + ' ' + currentX + ' ';- currentX += 10;- }- d+= '100 350 100';- return d;- }-- var pathEl = document.querySelector('path');-- var pathAnim = function() {- pathEl.setAttribute('d', generateDots());- var path = anime.path(pathEl);- anime({- targets: '.el',- translateX: path('x'),- translateY: path('y'),- rotate: path('angle'),- scale: [- { value: [4, 1], duration: 200 },- { value: [1, 0], duration: 200, delay: 3000 }- ],- easing: 'linear',- duration: 3000- });- anime({- targets: pathEl,- easing: 'linear',- strokeDashoffset: [anime.setDashoffset, 0],- duration: 3000,- opacity: {- value: [1, 0],- duration: 400,- delay: 3000- },- complete: pathAnim- });- }-- pathAnim();-- })();- </script>- </div>-</body>-</html>diff --git a/documentation/examples/anime-timeline.html b/documentation/examples/anime-timeline.htmldeleted file mode 100644index 136da2c8..00000000--- a/documentation/examples/anime-timeline.html+++ /dev/null@@ -1,125 +0,0 @@-<!DOCTYPE html>-<html>-<head>- <title>Timeline | anime.js</title>- <meta charset="utf-8">- <link rel="icon" type="image/png" href="../assets/img/favicon.png" />- <link href="../assets/css/anime.css" rel="stylesheet">- <script src="../../anime.js"></script>- <style>-- .demo {- padding: 20px;- }-- .row {- width: 100%;- }-- .item {- width: 2rem;- height: 2rem;- margin: 1rem;- background: currentColor;- border-radius: 50%;- }-- </style>-</head>-<body>- <div class="row demo timeline">- <h2>Timeline</h2>- <div class="row">- <div class="item color-04"></div>- <div class="item color-06"></div>- <div class="item color-04"></div>- <div class="item color-06"></div>- </div>- <div class="row controls">- <button class="play">PLAY</button>- <button class="pause">PAUSE</button>- <button class="restart">RESTART</button>- <button class="reverse">REVERSE</button>- <input class="progress" type="range" min="0" max="100" step=".1" value="0"></input>- </div>- <script>- (function() {- var progressEl = document.querySelector('.timeline .progress');- var playEl = document.querySelector('.timeline .play');- var pauseEl = document.querySelector('.timeline .pause');- var restartEl = document.querySelector('.timeline .restart');- var reverseEl = document.querySelector('.timeline .reverse');-- var simpleTL = anime.timeline({- loop: true,- direction: 'alternate',- update: function(a) { progressEl.value = a.progress },- });-- simpleTL- .add({- targets: '.timeline .color-04',- translateX: [- { value: 250, duration: 1000, delay: 500, elasticity: 0 },- { value: 0, duration: 1000, delay: 500, elasticity: 0 }- ],- translateY: [- { value: -40, duration: 500, elasticity: 100 },- { value: 40, duration: 500, delay: 1000, elasticity: 100 },- { value: 0, duration: 500, delay: 1000, elasticity: 100 }- ],- scaleX: [- { value: 4, duration: 100, delay: 500, easing: 'easeOutExpo' },- { value: 1, duration: 900, elasticity: 300 },- { value: 4, duration: 100, delay: 500, easing: 'easeOutExpo' },- { value: 1, duration: 900, elasticity: 300 }- ],- scaleY: [- { value: [1.75, 1], duration: 500 },- { value: 2, duration: 50, delay: 1000, easing: 'easeOutExpo' },- { value: 1, duration: 450 },- { value: 1.75, duration: 50, delay: 1000, easing: 'easeOutExpo' },- { value: 1, duration: 450 }- ],- delay: function(el, i) { return 50 * i; }- })- .add({- targets: '.timeline .color-06',- translateX: [- { value: 250, duration: 1000, delay: 500, elasticity: 0 },- { value: 0, duration: 1000, delay: 500, elasticity: 0 }- ],- translateY: [- { value: -40, duration: 500, elasticity: 100 },- { value: 40, duration: 500, delay: 1000, elasticity: 100 },- { value: 0, duration: 500, delay: 1000, elasticity: 100 }- ],- scaleX: [- { value: 4, duration: 100, delay: 500, easing: 'easeOutExpo' },- { value: 1, duration: 900, elasticity: 300 },- { value: 4, duration: 100, delay: 500, easing: 'easeOutExpo' },- { value: 1, duration: 900, elasticity: 300 }- ],- scaleY: [- { value: [1.75, 1], duration: 500 },- { value: 2, duration: 50, delay: 1000, easing: 'easeOutExpo' },- { value: 1, duration: 450 },- { value: 1.75, duration: 50, delay: 1000, easing: 'easeOutExpo' },- { value: 1, duration: 450 }- ],- delay: function(el, i) { return 50 * i; },- offset: '-=2000'- });-- playEl.onclick = simpleTL.play;- pauseEl.onclick = simpleTL.pause;- restartEl.onclick = simpleTL.restart;- reverseEl.onclick = simpleTL.reverse;- progressEl.oninput = function() {- simpleTL.seek((progressEl.value * simpleTL.duration) / 100);- }- })();- </script>- </div>-</body>-</html>diff --git a/documentation/index.html b/documentation/index.htmlindex f5302039..bcf52498 100644--- a/documentation/index.html+++ b/documentation/index.html@@ -3,9 +3,18 @@<head><title>Documentation | anime.js</title><meta charset="utf-8">- <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />- <link rel="icon" type="image/png" href="assets/img/favicon.png" />- <link rel="apple-touch-icon" href="assets/img/apple-touch-icon.png" />+ <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">+ <meta property="og:title" content="anime.js">+ <meta property="og:url" content="http://anime-js.com">+ <meta property="og:description" content="Javascript Animation Engine">+ <meta property="og:image" content="assets/img/icons/og.png">+ <meta name="twitter:card" content="summary">+ <meta name="twitter:title" content="anime.js">+ <meta name="twitter:site" content="@juliangarnier">+ <meta name="twitter:description" content="Javascript Animation Engine">+ <meta name="twitter:image" content="assets/img/icons/twitter.png">+ <link rel="apple-touch-icon-precomposed" href="assets/img/icons/apple-touch-icon.png">+ <link rel="icon" type="image/png" href="assets/img/icons/favicon.png" ><link href="https://fonts.googleapis.com/css?family=Space+Mono" rel="stylesheet"><link href="assets/css/anime.css" rel="stylesheet"><link href="assets/css/anime-theme.css" rel="stylesheet">diff --git a/documentation/examples/anime-logo-animation-timeline.html b/index.htmlsimilarity index 55%rename from documentation/examples/anime-logo-animation-timeline.htmlrename to index.htmlindex 67e77cc5..9597db94 100644--- a/documentation/examples/anime-logo-animation-timeline.html+++ b/index.html@@ -1,83 +1,25 @@<!DOCTYPE html><html><head>- <title>Anime logo animation | anime.js</title>+ <title>anime.js</title><meta charset="utf-8">- <link rel="icon" type="image/png" href="../assets/img/favicon.png" />- <link href="../assets/css/anime.css" rel="stylesheet">- <script src="../../anime.js"></script>- <style>- .logo-animation {- display: flex;- align-items: center;- justify-content: center;- width: 100%;- height: 100%;- margin-top: -40px;- }- .letters {- position: relative;- display: flex;- width: 682px;- height: 162px;- }- .letter {- position: relative;- width: 162px;- height: 162px;- }- .letter:not(:first-child) {- margin-left: -42px;- }- .letter-i {- z-index: 1;- width: 82px;- transform-origin: 100% 50%;- }- .dot {- position: absolute;- width: 42px;- height: 42px;- transform: scale(0);- }- .dot-i {- top: 0;- left: 240px;- }- .dot-e {- bottom: 0;- right: 0;- }- .logo-icon {- display: flex;- position: absolute;- left: 230px;- top: -10px;- width: 222px;- height: 62px;- }- .icon {- width: 62px;- height: 62px;- opacity: 0;- }- .icon-text {- position: absolute;- top: 60px;- left: 60px;- width: 160px;- height: 62px;- }- .icon-text path,- .icon-text polygon {- opacity: 0;- }- /*.letter, .dot {- mix-blend-mode: lighten;- }*/- </style>+ <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">+ <meta property="og:title" content="anime.js">+ <meta property="og:url" content="http://anime-js.com">+ <meta property="og:description" content="Javascript Animation Engine">+ <meta property="og:image" content="documentation/assets/img/icons/og.png">+ <meta name="twitter:card" content="summary">+ <meta name="twitter:title" content="anime.js">+ <meta name="twitter:site" content="@juliangarnier">+ <meta name="twitter:description" content="Javascript Animation Engine">+ <meta name="twitter:image" content="documentation/assets/img/icons/twitter.png">+ <link rel="apple-touch-icon-precomposed" href="documentation/assets/img/icons/apple-touch-icon.png">+ <link rel="icon" type="image/png" href="documentation/assets/img/icons/favicon.png" >+ <link href="documentation/assets/css/anime.css" rel="stylesheet">+ <link href="documentation/assets/css/site.css" rel="stylesheet"></head><body>+ <canvas class="fireworks"></canvas><div class="logo-animation"><div class="letters"><div class="letter letter-a">@@ -178,130 +120,37 @@</div></div></div>+ <div class="info">+ <p class="description">+ Javascript Animation Engine+ </p>+ <div class="links">+ <a class="button blue" href="https://codepen.io/collection/XLebem/" target="_blank">+ <svg viewBox="0 0 180 60">+ <path d="M10,10 C10,10 50,9.98999977 90,9.98999977 C130,9.98999977 170,10 170,10 C170,10 170.009995,20 170.009995,30 C170.009995,40 170,50 170,50 C170,50 130,50.0099983 90,50.0099983 C50,50.0099983 10,50 10,50 C10,50 9.98999977,40 9.98999977,30 C9.98999977,20 10,10 10,10 Z"></path>+ </svg>+ <span>Examples</span>+ </a>+ <a class="button green" href="https://github.com/juliangarnier/anime" target="_blank">+ <svg viewBox="0 0 180 60">+ <path d="M10,10 C10,10 50,9.98999977 90,9.98999977 C130,9.98999977 170,10 170,10 C170,10 170.009995,20 170.009995,30 C170.009995,40 170,50 170,50 C170,50 130,50.0099983 90,50.0099983 C50,50.0099983 10,50 10,50 C10,50 9.98999977,40 9.98999977,30 C9.98999977,20 10,10 10,10 Z"></path>+ </svg>+ <span>Documentation</span>+ </a>+ </div>+ <p class="credits">+ © 2017 <a href="http://juliangarnier.com" target="_blank">Julian Garnier</a>+ </p>+ </div><script>-- var pathEls = document.querySelectorAll('path:not(.icon-curve)');-- for (var i = 0; i < pathEls.length; i++) {- var el = pathEls[i];- el.setAttribute('stroke-dashoffset', anime.setDashoffset(el));- }-- var logoAnimation = anime.timeline({- loop: true,- direction: 'alternate',- update: function(anim) {- // console.log(anim.progress, anim.currentTime);- }- });-- logoAnimation- .add({- targets: '.dot-e',- translateX: { value: -600, duration: 520, delay: 200, easing: 'easeInQuart' },- scale: [- { value: [0, 1], duration: 200, easing: 'easeOutBack' },- { value: 0, duration: 20, delay: 500, easing: 'easeInQuart' }- ]- })- .add({- targets: '.fill.in',- strokeDashoffset: {- value: [anime.setDashoffset, 0],- duration: 600,- delay: function(el, i, t) { return i * 100; },- easing: 'easeOutQuart'- },- stroke: {- value: ['#FFF', function(el) { return anime.getValue(el.parentNode, 'stroke') } ],- duration: 500,- delay: 100,- easing: 'easeInQuad'- }- })- .add({- targets: '.fill.in',- opacity: 0,- duration: 1- })- .add({- targets: '.dot-e',- translateX: { value: [-100, 0], duration: 500, easing: 'easeOutQuart' },- scale: [- { value: [0, 1], duration: 200, easing: 'easeOutBack' },- { value: 0, duration: 200, delay: 1000, easing: 'easeInQuart' }- ],- offset: '-=250'- })- .add({- targets: '.dot-i',- translateY: {- value: [-200, 0],- duration: 500,- elasticity: 400- },- scale: [- { value: [0, 1], duration: 100, easing: 'easeOutQuart' },- { value: 0, duration: 400, delay: 1000, easing: 'easeInBack' }- ],- offset: '-=1500'- })- .add({- targets: '.line.out',- strokeDashoffset: {- value: [0, anime.setDashoffset],- duration: 1200,- delay: function(el, i, t) { return i * 100; },- easing: 'easeInQuart'- },- strokeWidth: {- value: [0, 2],- delay: function(el, i, t) { return i * 100; },- duration: 200,- easing: 'linear'- },- offset: '-=1100'- })- .add({- targets: '.fill.out',- strokeDashoffset: [- { value: [anime.setDashoffset, 0], duration: 1 },- {- value: [0, anime.setDashoffset],- duration: 800,- delay: function(el, i) { return i * 80; },- easing: 'easeInQuart'- }- ],- offset: '-=2000'- })- .add({- targets: '.icon',- opacity: { value: 1, duration: 10, easing: 'linear' },- translateY: { value: 60, duration: 800, delay: 2000 },- offset: '-=1500'- })- .add({- targets: '.icon-line',- strokeDashoffset: [- { value: [anime.setDashoffset, anime.setDashoffset], duration: 1 },- { value: 0, duration: 1200, easing: 'easeInOutQuart' }- ],- strokeWidth: {- value: [8, 2],- duration: 800,- easing: 'easeInQuad'- },- stroke: {- value: ['#FFF', function(el) { return anime.getValue(el, 'stroke') } ],- duration: 800,- delay: 400,- easing: 'easeInQuad'- },- offset: '-=1500'- })-+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)+ })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');+ ga('create', 'UA-79927007-1', 'auto');+ ga('send', 'pageview');</script>- <script src="../assets/js/stats.js"></script>+ <script src="anime.js"></script>+ <script src="documentation/assets/js/site.js"></script></body></html>