Skip to content

Commit 9a64568

Browse files
authored
feat: animate homepage svgs (#2908)
1 parent 98cef38 commit 9a64568

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

packages/core/src/storybook/stand-alone-documentaion/welcome/hero/Hero.module.scss

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,28 @@
2929
}
3030
}
3131

32+
.arrowIcon {
33+
path {
34+
stroke-dasharray: 1000;
35+
stroke-dashoffset: 1000;
36+
animation: drawSvg 2s ease-in-out forwards;
37+
}
38+
}
39+
40+
.heartIcon {
41+
path {
42+
stroke-dasharray: 800;
43+
stroke-dashoffset: 800;
44+
animation: drawSvg 2s ease-in-out 0.8s forwards;
45+
}
46+
}
47+
48+
@keyframes drawSvg {
49+
to {
50+
stroke-dashoffset: 0;
51+
}
52+
}
53+
3254
@media screen and (max-width: 1200px) {
3355
.hero {
3456
.header {

packages/core/src/storybook/stand-alone-documentaion/welcome/hero/icons/ArrowIcon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default function ArrowIcon({ className }: { className?: string }) {
1111
xmlns="http://www.w3.org/2000/svg"
1212
>
1313
<path
14-
d="M142.191 52.8681L107.627 41.1405M142.191 52.8681L114.507 85.239M142.191 52.8681C50.1209 94.2659 34.4833 12.7837 63.7408 4.73466C92.9982 -3.31434 96.5293 100.303 4.0957 57.5865"
14+
d="M4.09567 56.5805C96.1657 97.9783 94.0459 0.947456 65 3.99989C35.9541 7.05233 46.6909 95.7276 142.191 51.7276L107.627 40L142.191 51.7276L114.507 84.0985"
1515
stroke="#FF5A85"
1616
strokeWidth="7.14286"
1717
strokeLinecap="round"

0 commit comments

Comments
 (0)