Tim Le 👨🏾‍🚀


About Me

I'm Tim, a software engineer with a strong sense for design. I value clean UI, thoughtful UX, and simple tools. This is my digital garden. 🌱


Home
Blogs
Stacks
Projects
Tools
Back to Blogs
Scroll Nap Type: Build a professional Carousel with only CSS

Scroll Nap Type: Build a professional Carousel with only CSS

The scroll-snap-type CSS property sets how strictly snap points are enforced on the scroll container in case there is one.

April 18, 2026
#css #carousel

Well orchestrated scroll experiences set your experience apart from the rest, and scroll snap is the perfect way to match system scroll UX while providing meaningful stopping points.

<iframe height="500" style="width: 450px;" scrolling="no" title="Snap Align - start, center, &amp; end" src="https://codepen.io/web-dot-dev/embed/QWVmYLv?default-tab=result&editable=true" frameborder="no" loading="lazy" allowtransparency="true" allowfullscreen="true">

See the Pen <a href="https://codepen.io/web-dot-dev/pen/QWVmYLv">

Snap Align - start, center, &amp; end</a> by web.dev (<a href="https://codepen.io/web-dot-dev">@web-dot-dev</a>)

on <a href="https://codepen.io">CodePen</a>.

</iframe>

In TailwindCSS, there is a document about Scroll Nap Type:

https://tailwindcss.com/docs/scroll-snap-type

Back to All Posts
POWERED BY TIM LE, 2026
Contact Me