Add scale effect in zap icon pulse animation

This commit is contained in:
Haishan 2022-06-12 18:43:01 +08:00
parent 38571da24a
commit d10d30baa3

View file

@ -1,12 +1,13 @@
.animate {
--saturation: 70%;
stroke: hsl(46deg var(--saturation) 45%);
transform: scale(1);
animation: zap-pulse 0.7s 0s ease-in-out none normal infinite;
}
// prettier-ignore
@keyframes zap-pulse {
0% { stroke: hsl(46deg var(--saturation) 45%); }
50% { stroke: hsl(46deg var(--saturation) 95%); }
100% { stroke: hsl(46deg var(--saturation) 45%); }
0% { stroke: hsl(46deg var(--saturation) 45%); transform: scale(1); }
50% { stroke: hsl(46deg var(--saturation) 95%); transform: scale(1.1); }
100% { stroke: hsl(46deg var(--saturation) 45%); transform: scale(1); }
}