add standar css animation
This commit is contained in:
parent
1ea453237f
commit
9c53de114f
3 changed files with 8 additions and 2 deletions
|
@ -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);
|
||||
|
||||
}
|
||||
|
|
|
@ -43,6 +43,7 @@ $button-focus-shift: 12%;
|
|||
.button-block
|
||||
{
|
||||
cursor: pointer;
|
||||
transition: background var(--animation-duration) var(--animation-style);
|
||||
}
|
||||
|
||||
.button__content {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue