Skip to content

Commit 0d1be40

Browse files
committed
Fix pampers images on homepage
1 parent 7a73c6f commit 0d1be40

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/_components/home/homepage-section.webc

+1
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@
124124
grid-column: 2 / 3;
125125
grid-row: 1 / 3;
126126
justify-self: center;
127+
height: 100%;
127128
width: 100%;
128129
--translate-y: calc(15% * calc(var(--scroll-pct) - 0.25));
129130
transform: translate3d(0, var(--translate-y), 0);

src/index.webc

+2-2
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,9 @@ description: "art director/designer"
191191
}
192192

193193
#pampers img.center {
194+
position: absolute;
194195
width: 35%;
195-
margin: 0 auto;
196-
position: relative;
196+
left: 32.5%;
197197
z-index: 1;
198198
transform: translateY(calc(20% * calc(var(--scroll-pct) - 0.5)));
199199
}

0 commit comments

Comments
 (0)