Skip to content

Commit

Permalink
fix: Fix to animate with stroke-dasharray (#352)
Browse files Browse the repository at this point in the history
  • Loading branch information
MikuroXina authored Oct 25, 2023
1 parent 471dc75 commit b3d026e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/scss/pages/index.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
.splash > svg > text {
text-align: center;
fill: transparent;
stroke-dasharray: 800;
stroke-dashoffset: 800;
stroke-dasharray: 1400px 9999999px;
stroke-width: 2px;
animation-name: hero-stroke;
animation-duration: 2.5s;
Expand All @@ -26,10 +25,10 @@

@keyframes hero-stroke {
from {
stroke-dashoffset: 800;
stroke-dasharray: 0 9999999px;
}

to {
stroke-dashoffset: 0;
stroke-dasharray: 1400px 9999999px;
}
}

0 comments on commit b3d026e

Please sign in to comment.