Skip to content

Commit 93d5cfd

Browse files
fix svg animation styling
1 parent 598129a commit 93d5cfd

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/animation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function start_animation() {
99
const centerX = width / 2
1010
const centerY = height / 2
1111

12-
const svg = document.getElementById('scene')
12+
const svg = document.getElementById('hero-animation')
1313
svg.setAttribute('viewBox', `0 0 ${width} ${height}`)
1414
svg.setAttribute('width', width)
1515
svg.setAttribute('height', height)

src/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
<body class="bg-gray-200 font-grotesk-regular">
9595
<div
9696
class="font-grotesk-bold h-screen flex items-center justify-center bg-cover bg-no-repeat bg-center bg-odd-hero relative">
97-
<svg id="scene" viewBox="0 0 1920 1080" preserveAspectRatio="xMidYMid slice"
97+
<svg id="hero-animation" viewBox="0 0 1920 1080" preserveAspectRatio="xMidYMid slice"
9898
class="absolute inset-0 w-full h-full z-0"></svg>
9999

100100
<!-- Centered overlay SVG -->

src/main.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
list-style-type: upper-alpha;
7878
}
7979

80-
svg {
80+
#hero-animation {
8181
width: 100%;
8282
height: 100%;
8383
background-color: #4ddfff;

0 commit comments

Comments
 (0)