feat: puncture hole

This commit is contained in:
tresabhi committed 2025-04-22 01:06:38 -05:00
1 parent 22d794ac65
commit 9c027b3dde
2 files changed
+53 -13

No files matched your search

@@ -8,6 +8,10 @@
}
}
.ricochet-visualizer-penetrating-shell {
animation: penetrating-shell-slide 3s infinite;
}
@keyframes ricocheting-shell-slide {
0% {
margin-top: -18rem;
@@ -39,13 +43,7 @@
}
}
.ricochet-visualizer-penetrating-shell {
position: absolute;
animation: penetrating-shell-slide 3s infinite;
}
.ricochet-visualizer-ricocheting-shell {
position: absolute;
animation: ricocheting-shell-slide 3s infinite;
}
@@ -55,18 +53,17 @@
@keyframes surface-impact {
0%,
10% {
60% {
opacity: 1;
width: 0;
height: 0;
}
15%,
30% {
66% {
opacity: 1;
width: 3rem;
height: 3rem;
width: 1.5rem;
height: 1.5rem;
}
45%,
72%,
100% {
opacity: 0;
width: 3rem;
@@ -75,5 +72,27 @@
}
.ricochet-visualizer-surface-impact {
animation: surface-impact 3s infinite;
animation: surface-impact 3s linear infinite;
}
@keyframes puncture {
0%,
10% {
opacity: 1;
margin-top: -6rem;
}
15%,
30% {
opacity: 1;
margin-top: -1rem;
}
45%,
100% {
opacity: 0;
margin-top: -1rem;
}
}
.ricochet-visualizer-puncture {
animation: puncture 3s infinite;
}
@@ -38,6 +38,25 @@ export function RicochetVisualizer({ stats }: VisualizerProps) {
backgroundImage: `url(/assets/images/tankopedia/visualizers/ricochet/armor-hash.png)`,
}}
/>
<Box
position="absolute"
left="25%"
top="0"
style={{
transformOrigin: 'top center',
transform: `translateX(-50%) rotate(${ricochet / 2}deg)`,
}}
>
<Box
className="ricochet-visualizer-puncture"
width="1rem"
height="6rem"
style={{
background: `linear-gradient(${Var('gray-1')}, ${Var('gray-a1')})`,
}}
/>
</Box>
</Box>
<Box
@@ -137,6 +156,7 @@ export function RicochetVisualizer({ stats }: VisualizerProps) {
transform: 'rotate(135deg)',
width: '100%',
height: '100%',
position: 'absolute',
}}
/>
</Box>
@@ -160,6 +180,7 @@ export function RicochetVisualizer({ stats }: VisualizerProps) {
transform: 'translateY(50%) rotate(135deg)',
width: '100%',
height: '100%',
position: 'absolute',
}}
/>
</Box>