Add scale effect in zap icon pulse animation
This commit is contained in:
parent
38571da24a
commit
d10d30baa3
1 changed files with 4 additions and 3 deletions
|
@ -1,12 +1,13 @@
|
||||||
.animate {
|
.animate {
|
||||||
--saturation: 70%;
|
--saturation: 70%;
|
||||||
stroke: hsl(46deg var(--saturation) 45%);
|
stroke: hsl(46deg var(--saturation) 45%);
|
||||||
|
transform: scale(1);
|
||||||
animation: zap-pulse 0.7s 0s ease-in-out none normal infinite;
|
animation: zap-pulse 0.7s 0s ease-in-out none normal infinite;
|
||||||
}
|
}
|
||||||
|
|
||||||
// prettier-ignore
|
// prettier-ignore
|
||||||
@keyframes zap-pulse {
|
@keyframes zap-pulse {
|
||||||
0% { stroke: hsl(46deg var(--saturation) 45%); }
|
0% { stroke: hsl(46deg var(--saturation) 45%); transform: scale(1); }
|
||||||
50% { stroke: hsl(46deg var(--saturation) 95%); }
|
50% { stroke: hsl(46deg var(--saturation) 95%); transform: scale(1.1); }
|
||||||
100% { stroke: hsl(46deg var(--saturation) 45%); }
|
100% { stroke: hsl(46deg var(--saturation) 45%); transform: scale(1); }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue