Carousel / image slider
Comes up in: Machine coding
This concept is being written. It gets the full five steps — explanation, predict, interview angle, practice with tests, and review cards. Here is exactly what it will cover, so you can study it elsewhere in the meantime.
What it covers
- CSS scroll-snap vs transform approach
- prev/next, dots, autoplay with pause (2.2.2)
- swipe with pointer events
- infinite loop technique
- lazy-loading slides
- carousel a11y pattern
Words you will know
What you will practise
- build (timed 60 min)
Interview questions this answers
- Build an image carousel. How do you make autoplay accessible?
- How would you implement an infinite looping carousel?