Skip to content

Commit c40252c

Browse files
committed
fix: day 57
1 parent 10d131e commit c40252c

File tree

2 files changed

+48
-32
lines changed

2 files changed

+48
-32
lines changed

057-parallax background svg/index.html

Lines changed: 35 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1094,38 +1094,41 @@ <h1>Go Camping</h1>
10941094
rx="2.87"
10951095
ry="2.87"
10961096
/>
1097-
<polygon
1098-
class="cls-14"
1099-
points="217.02 303.37 201.68 288.06 206.33 283.42 221.68 298.72 217.02 303.37"
1100-
/>
1101-
<polygon
1102-
class="cls-14"
1103-
points="209.04 291.38 194.44 276.81 195.05 276.2 209.66 290.76 209.04 291.38"
1104-
/>
1105-
<polygon
1106-
class="cls-14"
1107-
points="171.3 248.48 186.64 263.78 181.99 268.43 166.64 253.12 171.3 248.48"
1108-
/>
1109-
<polygon
1110-
class="cls-14"
1111-
points="179.28 260.47 193.88 275.03 193.27 275.65 178.66 261.08 179.28 260.47"
1112-
/>
1113-
<polygon
1114-
class="cls-14"
1115-
points="166.64 298.72 181.99 283.42 186.64 288.06 171.3 303.37 166.64 298.72"
1116-
/>
1117-
<polygon
1118-
class="cls-14"
1119-
points="178.66 290.76 193.27 276.2 193.88 276.81 179.28 291.38 178.66 290.76"
1120-
/>
1121-
<polygon
1122-
class="cls-14"
1123-
points="221.68 253.12 206.33 268.43 201.68 263.78 217.02 248.48 221.68 253.12"
1124-
/>
1125-
<polygon
1126-
class="cls-14"
1127-
points="209.66 261.08 195.05 275.65 194.44 275.03 209.04 260.47 209.66 261.08"
1128-
/>
1097+
<!-- Group and Animate Windmill Blades -->
1098+
<g id="Blades">
1099+
<polygon
1100+
class="cls-14"
1101+
points="217.02 303.37 201.68 288.06 206.33 283.42 221.68 298.72 217.02 303.37"
1102+
/>
1103+
<polygon
1104+
class="cls-14"
1105+
points="209.04 291.38 194.44 276.81 195.05 276.2 209.66 290.76 209.04 291.38"
1106+
/>
1107+
<polygon
1108+
class="cls-14"
1109+
points="171.3 248.48 186.64 263.78 181.99 268.43 166.64 253.12 171.3 248.48"
1110+
/>
1111+
<polygon
1112+
class="cls-14"
1113+
points="179.28 260.47 193.88 275.03 193.27 275.65 178.66 261.08 179.28 260.47"
1114+
/>
1115+
<polygon
1116+
class="cls-14"
1117+
points="166.64 298.72 181.99 283.42 186.64 288.06 171.3 303.37 166.64 298.72"
1118+
/>
1119+
<polygon
1120+
class="cls-14"
1121+
points="178.66 290.76 193.27 276.2 193.88 276.81 179.28 291.38 178.66 290.76"
1122+
/>
1123+
<polygon
1124+
class="cls-14"
1125+
points="221.68 253.12 206.33 268.43 201.68 263.78 217.02 248.48 221.68 253.12"
1126+
/>
1127+
<polygon
1128+
class="cls-14"
1129+
points="209.66 261.08 195.05 275.65 194.44 275.03 209.04 260.47 209.66 261.08"
1130+
/>
1131+
</g>
11291132
<path
11301133
class="cls-17"
11311134
d="M412.3,357.25h-6.24c-.71,0-1.28-1.08-1.28-2.42s.57-2.41,1.28-2.41h6.24Z"

057-parallax background svg/style.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,16 @@ svg {
5757
transform: translateX(-100px);
5858
}
5959
}
60+
61+
/* Group and Animate Windmill Blades */
62+
#Blades {
63+
transform-box: fill-box;
64+
transform-origin: center;
65+
animation: windmill-spin 20s linear infinite;
66+
}
67+
68+
@keyframes windmill-spin {
69+
100% {
70+
transform: rotate(360deg);
71+
}
72+
}

0 commit comments

Comments
 (0)