mirror of https://github.com/IanLunn/Hover.git
28 lines
482 B
SCSS
28 lines
482 B
SCSS
/* Hover */
|
|
@keyframes hover {
|
|
50% {
|
|
transform: translateY(-3px);
|
|
}
|
|
|
|
100% {
|
|
transform: translateY(-6px);
|
|
}
|
|
}
|
|
|
|
@mixin hover {
|
|
display: inline-block;
|
|
transition-duration: .5s;
|
|
transition-property: transform;
|
|
|
|
@extend %hacks;
|
|
|
|
&:hover {
|
|
transform: translateY(-6px);
|
|
animation-name: hover;
|
|
animation-duration: 1.5s;
|
|
animation-delay: $defaultDuration;
|
|
animation-timing-function: linear;
|
|
animation-iteration-count: infinite;
|
|
animation-direction: alternate;
|
|
}
|
|
} |