Skip to content

armgit / anime

Public Imported from GitHub
0

JavaScript animation engine

Better menu animation

Julian Garnier9a5825034638
diff --git a/documentation/assets/css/styles.css b/documentation/assets/css/styles.css
index 7f7bed46..2eaf559e 100644
--- a/documentation/assets/css/styles.css
+++ b/documentation/assets/css/styles.css
@@ -44,8 +44,8 @@ header {
justify-content: space-between;
width: 100%;
height: 60px;
- padding-left: 10px;
- padding-right: 10px;
+ padding-left: 20px;
+ padding-right: 20px;
border-bottom: 1px solid #09090B;
}
@@ -59,7 +59,6 @@ header {
}
h2 {
- padding: 0 8px;
font-size: 22px;
letter-spacing: 2px;
text-transform: uppercase;
@@ -104,19 +103,18 @@ h2,
overflow-y: scroll;
width: 100%;
height: 100%;
- padding: 20px 10px;
+ padding: 20px 0 20px 20px;
}
.navigation ul {
- height: 20px;
- margin-bottom: 10px;
+ height: 30px;
overflow-y: hidden;
transition: opacity .4s ease;
}
.navigation a {
display: block;
- padding-left: 10px;
+ padding-left: 15px;
color: #FFF;
text-decoration: none;
font-size: 12px;
@@ -130,6 +128,8 @@ h2,
.navigation ul li:first-child a {
padding-left: 0;
+ padding-top: 10px;
+ padding-bottom: 10px;
background-image: none;
}
diff --git a/documentation/assets/img/anime-js-v2-logo-white.png b/documentation/assets/img/anime-js-v2-logo-white.png
index 18201508..cde71c69 100644
Binary files a/documentation/assets/img/anime-js-v2-logo-white.png and b/documentation/assets/img/anime-js-v2-logo-white.png differ
diff --git a/documentation/assets/js/scripts.js b/documentation/assets/js/scripts.js
index c6c6b84b..fed000dd 100644
--- a/documentation/assets/js/scripts.js
+++ b/documentation/assets/js/scripts.js
@@ -54,7 +54,7 @@ function toggleSectionLink(ulEl) {
for (var i = 0; i < ulEls.length; i++) ulEls[i].classList.remove('active');
anime({
targets: '.navigation ul',
- height: ulHeight,
+ height: ulHeight + 10,
duration: 400,
easing: 'easeOutQuart'
});
@@ -62,7 +62,7 @@ function toggleSectionLink(ulEl) {
anime({
targets: ulEl,
height: function(el) {
- return el.childNodes.length * ulHeight;
+ return el.childNodes.length * ulHeight + 20;
},
duration: 600,
delay: 400,