JavaScript animation engine
Update docs font
Julian Garnier145a57fa0b52
diff --git a/documentation/assets/css/documentation.css b/documentation/assets/css/documentation.cssindex 8211ea57..1c63add5 100644--- a/documentation/assets/css/documentation.css+++ b/documentation/assets/css/documentation.css@@ -16,6 +16,7 @@ body {height: 100%;color: white;font-family: Helvetica Neue, Helvetica, Arial, sans-serif;+ font-family: RoobertTRIAL-Light;-webkit-font-smoothing: antialiased;overflow-x: hidden;}@@ -146,10 +147,10 @@ header {content: "";display: block;position: absolute;- top: 3px;+ top: 4px;left: 2px;width: 1px;- height: 14px;+ height: calc(100% - 8px);background-color: white;}@@ -162,8 +163,9 @@ header {padding-left: 10px;color: #FFF;text-decoration: none;- font-size: 12px;+ font-size: 14px;line-height: 20px;+ letter-spacing: .5px;text-transform: uppercase;}@@ -213,8 +215,8 @@ header {.demo-info {flex-direction: column;width: 50%;- font-size: 15px;- line-height: 25px;+ font-size: 16px;+ line-height: 24px;/*border-left: 1px solid rgba(0,0,0,.35);*/}@@ -288,7 +290,7 @@ header {.demo-info code.hljs {display: inline-block;- font-size: 14px;+ font-size: 15px;}.demo-info pre {@@ -325,6 +327,7 @@ header {font-weight: 200;text-transform: uppercase;letter-spacing: .15em;+ font-size: 14px;color: rgba(255,255,255,.5);}@@ -449,7 +452,7 @@ article {left: 20px;width: calc(100% - 40px);padding: 23px 0;- font-size: 12px;+ font-size: 14px;letter-spacing: 2px;text-transform: uppercase;color: #FFF;@@ -485,7 +488,7 @@ article {display: block;margin: 0 0 0 -1px;padding: 5px 10px;- font-size: 12px;+ font-size: 14px;text-transform: uppercase;border: 1px solid currentColor;background-color: transparent;@@ -611,7 +614,7 @@ input.progress[value]::-webkit-slider-thumb {height: 28px;margin: 1px;background-color: currentColor;- font-size: 12px;+ font-size: 14px;}.circle {diff --git a/documentation/index.html b/documentation/index.htmlindex 1bc73d95..1e0c63c3 100644--- a/documentation/index.html+++ b/documentation/index.html@@ -2111,8 +2111,8 @@ controlsProgressEl.addEventListener('input', function() {easing: 'easeInOutCirc'},rectangle: {- scaleX: 1.2,- scaleY: .7,+ scaleX: 1.3,+ scaleY: .6,}},});</pre></code>@@ -2151,10 +2151,10 @@ var statesDemoAnimation = anime({easing: 'easeInOutCirc'},rectangle: {- scaleX: 1.2,- scaleY: .7+ scaleX: 1.3,+ scaleY: .6}- },+ }});for (var i = 0; i < buttons.length; i++) {@@ -2163,11 +2163,30 @@ for (var i = 0; i < buttons.length; i++) {});}/*DEMO*/-statesDemoAnimation.complete = function(anim) {- var activeButton = document.querySelector('.states-demo button[value='+anim.currentState+']');- for (var i = 0; i < buttons.length; i++) buttons[i].classList.remove('is-active');- activeButton.classList.add('is-active');-}+var statesDemoAnimation = anime({+ targets: '.states-demo .el',+ scaleX: 1,+ scaleY: 1,+ borderRadius: '0%',+ duration: 500,+ easing: 'easeInOutQuad',+ states: {+ circle: {+ borderRadius: '50%',+ duration: 1000,+ easing: 'easeInOutCirc'+ },+ rectangle: {+ scaleX: 1.3,+ scaleY: .6+ }+ },+ begin: function(anim) {+ var activeButton = document.querySelector('.states-demo button[value='+anim.currentState+']');+ for (var i = 0; i < buttons.length; i++) buttons[i].classList.remove('is-active');+ activeButton.classList.add('is-active');+ }+});}</script></div>@@ -2207,8 +2226,8 @@ var statesOverridesDemoAnimation = anime({borderRadius: '50%'},rectangle: {- scaleX: 1.2,- scaleY: .7+ scaleX: 1.3,+ scaleY: .6}},});@@ -2225,11 +2244,29 @@ for (var i = 0; i < buttons.length; i++) {});}/*DEMO*/- statesOverridesDemoAnimation.complete = function(anim) {+var statesOverridesDemoAnimation = anime({+ targets: '.states-overrides-demo .el',+ scaleX: 1,+ scaleY: 1,+ borderRadius: '0%',+ duration: 500,+ easing: 'easeInOutQuad',+ states: {+ circle: {+ borderRadius: '50%'+ },+ rectangle: {+ scaleX: 1.3,+ scaleY: .6+ }+ },+ begin: function(anim) {var activeButton = document.querySelector('.states-overrides-demo button[value='+anim.currentState+']');for (var i = 0; i < buttons.length; i++) buttons[i].classList.remove('is-active');if (activeButton) activeButton.classList.add('is-active');}+});+statesOverridesDemoAnimation.goTo('circle');}</script></div>