feat(css): Added navigation bar animation

Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
Valentin Popov 2018-12-07 01:07:26 +04:00
parent d280eb17cb
commit 6900263c52
Signed by: Valentin Popov
GPG Key ID: 269A00ACA90A8EA3

View File

@ -23,6 +23,7 @@
text-align: center; text-align: center;
text-decoration: none; text-decoration: none;
&:active,
&:focus, &:focus,
&:hover { &:hover {
border: 0; border: 0;
@ -34,6 +35,25 @@
float: right; float: right;
} }
@media(min-width: 382px) {
.nav-pills {
li {
display: inline-block;
transform: perspective(1px) translateZ(0);
transition-duration: .3s;
transition-property: transform;
transition-timing-function: ease-out;
vertical-align: middle;
&:active,
&:focus,
&:hover {
transform: translateY(8px);
}
}
}
}
@media (max-width: 382px) { @media (max-width: 382px) {
.nav-right, .nav-right,
.nav-pills li { .nav-pills li {