JavaScript animation engine
Tweak documentation
Julian Garnierf38ef2b7c939
diff --git a/documentation/assets/css/documentation.css b/documentation/assets/css/documentation.cssindex 1c734fe4..9d5cd1dd 100644--- a/documentation/assets/css/documentation.css+++ b/documentation/assets/css/documentation.css@@ -215,7 +215,7 @@ header {width: 50%;font-size: 15px;line-height: 25px;- border-left: 1px solid rgba(0,0,0,.25);+ /*border-left: 1px solid rgba(0,0,0,.25);*/}.info-output {@@ -360,6 +360,23 @@ header {min-width: 330px;}+.demos::-webkit-scrollbar {+ width: 1px;+ background-color: transparent;+}++.demos::-webkit-scrollbar-track {+ background-color: rgba(0,0,0,.4);+}++.demos::-webkit-scrollbar-thumb {+ background-color: rgba(255,255,255,.2);+}++.demos::-webkit-scrollbar-thumb:hover {+ background-color: rgba(255,255,255,.4);+}+article {width: 100%;display: flex;diff --git a/documentation/assets/js/documentation.js b/documentation/assets/js/documentation.jsindex a7f824dc..981f862e 100644--- a/documentation/assets/js/documentation.js+++ b/documentation/assets/js/documentation.js@@ -268,6 +268,6 @@ function keyboardNavigation(e) {}}+updateDemos();window.onhashchange = updateDemos;-window.onload = updateDemos;document.onkeydown = keyboardNavigation;diff --git a/documentation/index.html b/documentation/index.htmlindex a9f3096a..e7974e1c 100644--- a/documentation/index.html+++ b/documentation/index.html@@ -1340,55 +1340,18 @@ anime({</div><script>var colors = function() {/*DEMO*/-anime({- targets: '.color-hex',- backgroundColor: '#FFF',- translateX: 250,- endDelay: 1000,- easing: 'easeInOutQuad',- direction: 'alternate',- loop: true-});--anime({- targets: '.color-rgb',- backgroundColor: 'rgb(255,255,255)',- translateX: 250,- endDelay: 1000,- easing: 'easeInOutQuad',- direction: 'alternate',- loop: true-});--anime({- targets: '.color-hsl',- backgroundColor: 'hsl(0, 100%, 100%)',- translateX: 250,+var colorsExamples = anime.timeline({endDelay: 1000,easing: 'easeInOutQuad',direction: 'alternate',loop: true-});--anime({- targets: '.color-rgba',- backgroundColor: 'rgba(255,255,255, .25)',- translateX: 250,- endDelay: 1000,- easing: 'easeInOutQuad',- direction: 'alternate',- loop: true-});--anime({- targets: '.color-hsla',- backgroundColor: 'hsla(0, 100%, 100%, .25)',- translateX: 250,- endDelay: 1000,- easing: 'easeInOutQuad',- direction: 'alternate',- loop: true-});+})+.add({ targets: '.color-hex', background: '#FFF' }, 0)+.add({ targets: '.color-rgb', background: 'rgb(255,255,255)' }, 0)+.add({ targets: '.color-hsl', background: 'hsl(0, 100%, 100%)' }, 0)+.add({ targets: '.color-rgba', background: 'rgba(255,255,255, .2)' }, 0)+.add({ targets: '.color-hsla', background: 'hsla(0, 100%, 100%, .2)' }, 0)+.add({ targets: '.colors-demo .el', translateX: 250 }, 0);/*DEMO*/}</script>