summaryrefslogtreecommitdiff
path: root/src/components/shared/ZapAnimated.module.scss
diff options
context:
space:
mode:
authorMatain <[email protected]>2022-06-12 23:34:56 +0800
committerMatain <[email protected]>2022-06-12 23:34:56 +0800
commitea5d7cf003eeef30cb7bbe789c6ba7f314bf1ce4 (patch)
treebff1bd7b0e8e8eb753d373b57f007bbe97f96c76 /src/components/shared/ZapAnimated.module.scss
parent4fd2c8f646e48dd0c07d0c2041de52e9a4f8bc82 (diff)
parent38571da24ac54137564be5e41b7a409009e2ee10 (diff)
Merge branch 'master' of https://github.com/haishanh/yacd into haishanh-master
Diffstat (limited to 'src/components/shared/ZapAnimated.module.scss')
-rw-r--r--src/components/shared/ZapAnimated.module.scss12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/components/shared/ZapAnimated.module.scss b/src/components/shared/ZapAnimated.module.scss
new file mode 100644
index 0000000..e4cb37b
--- /dev/null
+++ b/src/components/shared/ZapAnimated.module.scss
@@ -0,0 +1,12 @@
+.animate {
+ --saturation: 70%;
+ stroke: hsl(46deg var(--saturation) 45%);
+ 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%); }
+}