Recall & Review
beginner
What is a scroll-snap container?
A scroll-snap container is a box where scrolling stops exactly at certain points called snap positions. It helps users scroll smoothly and land on specific content sections.
Click to reveal answer
beginner
Which Tailwind CSS class makes an element a scroll-snap container?The class
snap-x or snap-y makes an element a scroll-snap container along the horizontal or vertical axis, respectively.Click to reveal answer
intermediate
What does the Tailwind class
snap-mandatory do?It forces the scroll to always stop at a snap point inside the container, preventing free scrolling between snap positions.
Click to reveal answer
beginner
How do you define snap points on child elements inside a scroll-snap container in Tailwind?
Use classes like
snap-start, snap-center, or snap-end on the child elements to set where the scroll should snap relative to the container.Click to reveal answer
beginner
Why is scroll snapping useful on mobile devices?
It improves user experience by making scrolling predictable and easy, so users can focus on one section at a time without overscrolling or missing content.
Click to reveal answer
Which Tailwind class sets a container to snap horizontally?
✗ Incorrect
The class
snap-x enables horizontal scroll snapping.What does the class
snap-start do on a child element?✗ Incorrect
snap-start snaps the scroll position to the start edge of the child element.Which class forces the scroll to always stop at snap points?
✗ Incorrect
snap-mandatory forces scrolling to stop exactly at snap points.If you want vertical scroll snapping, which Tailwind class should you use?
✗ Incorrect
snap-y enables vertical scroll snapping.What is the main benefit of using scroll-snap containers?
✗ Incorrect
Scroll-snap containers help users scroll smoothly and stop at important content sections.
Explain how to create a horizontal scroll-snap container using Tailwind CSS.
Think about container classes and child element classes.
You got /4 concepts.
Describe why scroll snapping improves user experience on mobile devices.
Consider how users scroll with fingers on small screens.
You got /4 concepts.