diff --git a/apps/website/src/components/ServiceCard.astro b/apps/website/src/components/ServiceCard.astro index 4a0cb4e7..64da2a95 100644 --- a/apps/website/src/components/ServiceCard.astro +++ b/apps/website/src/components/ServiceCard.astro @@ -42,11 +42,10 @@ const image = await src(); max-lg:col-span-6 md:gap-x-7 w-full - absolute - h-[710px] + [w-425px]:h-[710px] overflow-hidden `, - styles, + styles )} >
- +

{title}

-

{subtitle}

+

{subtitle}


-
+

Schedule a free DevEx audit

Contact Us -
\ No newline at end of file +
diff --git a/apps/website/src/styles/main.css b/apps/website/src/styles/main.css index d0d40dc6..b980d02b 100644 --- a/apps/website/src/styles/main.css +++ b/apps/website/src/styles/main.css @@ -121,7 +121,38 @@ body:has(nav #nav-menu-toggle:checked) { border-color: #607A1A; } -@media (min-width: 320px) { +@media (min-width: 425px) { + .animation-container { + /* 4 x card height - 3 x negative margin top */ + height: calc((4 * 710px) - (3 * 50)); + } + + .animation-card { + position: sticky; + width: 100%; + max-height: 710px; + margin-top: -50px; + } + + .animation-card:nth-child(1) { + top: 100px; + margin-top: 0; + } + + .animation-card:nth-child(2) { + top: 170px; + } + + .animation-card:nth-child(3) { + top: 240px; + } + + .animation-card:nth-child(4) { + top: 310px; + } +} + +@media (min-width: 768px) { .animation-container { /* 4 x card height - 3 x negative margin top */ height: calc((4 * 710px) - (3 * 50));