0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-23 21:53:55 -05:00
astro/examples/snowpack/public/styles/_animations.scss
2021-05-07 10:38:38 -06:00

44 lines
1,007 B
SCSS

@use './var' as *;
$easeOutSine: cubic-bezier(0.61, 1, 0.88, 1);
$easeInExpo: cubic-bezier(0.7, 0, 0.84, 0);
$easeInOutSine: cubic-bezier(0.37, 0, 0.63, 1);
$easeInOutCubic: cubic-bezier(0.65, 0, 0.35, 1);
$easeInOutBack: cubic-bezier(0.68, -0.6, 0.32, 1.6);
$easeInCirc: cubic-bezier(0.55, 0, 1, 0.45);
$easeOutExpo: cubic-bezier(0.16, 1, 0.3, 1);
$easeInQuad: cubic-bezier(0.11, 0, 0.5, 0);
$quintic: cubic-bezier(0.76, 0.05, 0.86, 0.06);
$transition-fast: 40ms;
$transition-medium: 500ms;
$transition-slow: 1s;
@keyframes pulse {
0% {
color: #2a85ca;
border-color: #2a85ca;
}
100% {
}
}
@mixin animation-copy-button {
transition: transform $transition-fast $easeInExpo,
border-color $transition-fast linear, box-shadow $transition-fast linear;
svg,
span {
transition: color $transition-fast linear;
}
&:hover {
box-shadow: 0 2px 2px 0 #2e5e8266;
transform: translateY(-1px);
border-color: #2a85ca;
svg,
span {
color: #2a85ca;
}
}
}