Skip to content

Commit f50e43a

Browse files
committed
Animate the bear even more
1 parent 662500a commit f50e43a

File tree

2 files changed

+33
-11
lines changed

2 files changed

+33
-11
lines changed

sass/_animations.scss

+17-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,25 @@
11
@keyframes fade-in {
22
0% {
33
opacity: 0;
4-
}
4+
}
55
100% {
66
opacity: 1;
7-
}
7+
}
8+
}
9+
10+
@keyframes delayed-stroke-in {
11+
0% {
12+
opacity: 0;
13+
}
14+
50% {
15+
opacity: 1;
16+
fill: rgba(255, 255, 255, 0);
17+
}
18+
100% {
19+
stroke-dashoffset: 0;
20+
opacity: 1;
21+
fill: rgba(255, 255, 255, 100);
22+
}
823
}
924

1025
@keyframes twinkle {

sass/main.scss

+16-9
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,22 @@ svg.logo {
4545
animation-duration: 1.5s;
4646

4747
#bear {
48-
fill: white;
49-
opacity: 0;
50-
51-
animation: fade-in;
52-
animation-timing-function:ease-in;
53-
animation-delay: 3s;
54-
animation-iteration-count: 1;
55-
animation-fill-mode: both;
56-
animation-duration: 1.5s;
48+
fill: none;
49+
stroke: white;
50+
51+
& path {
52+
opacity: 0;
53+
stroke-dashoffset: 4000;
54+
stroke-dasharray: 4000;
55+
56+
animation: delayed-stroke-in;
57+
animation-timing-function:ease-in;
58+
animation-delay: 3s;
59+
animation-iteration-count: 1;
60+
animation-fill-mode: both;
61+
animation-duration: 4.5s;
62+
}
63+
5764
}
5865

5966
#star-links {

0 commit comments

Comments
 (0)