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 */
|
||||||
--divider: 1px solid rgba(0, 0, 0, 0.12);
|
--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
|
.button-block
|
||||||
{
|
{
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
transition: background var(--animation-duration) var(--animation-style);
|
||||||
}
|
}
|
||||||
|
|
||||||
.button__content {
|
.button__content {
|
||||||
|
|
|
@ -40,8 +40,8 @@ nav.sub-header
|
||||||
left: 0;
|
left: 0;
|
||||||
content: '';
|
content: '';
|
||||||
animation-name: activeTab;
|
animation-name: activeTab;
|
||||||
animation-duration: 0.3s;
|
animation-duration: var(--animation-duration);
|
||||||
animation-timing-function: cubic-bezier(.55,0,.1,1);
|
animation-timing-function: var(--animation-style);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
&:hover
|
&:hover
|
||||||
|
|
Loading…
Reference in a new issue