add standar css animation

This commit is contained in:
btzr-io 2017-10-02 19:35:52 -06:00
parent 1ea453237f
commit 9c53de114f
3 changed files with 8 additions and 2 deletions

View file

@ -138,4 +138,9 @@ $text-color: #000;
/* Divider */
--divider: 1px solid rgba(0, 0, 0, 0.12);
/* Animation :) */
--animation-duration: 0.3s;
--animation-style: cubic-bezier(.55,0,.1,1);
}

View file

@ -43,6 +43,7 @@ $button-focus-shift: 12%;
.button-block
{
cursor: pointer;
transition: background var(--animation-duration) var(--animation-style);
}
.button__content {

View file

@ -40,8 +40,8 @@ nav.sub-header
left: 0;
content: '';
animation-name: activeTab;
animation-duration: 0.3s;
animation-timing-function: cubic-bezier(.55,0,.1,1);
animation-duration: var(--animation-duration);
animation-timing-function: var(--animation-style);
}
}
&:hover