FrontendArk

Master Frontend Interviews

  • Practice
  • Playground
  • Resource
Medium

Image Carousel II

30 mins

Build an Image Carousel component in React that smoothly transitions between images.

Requirements:

  1. Display a sequence of images.
  2. Automatically transition to the next image every few seconds.
  3. Include "Previous" and "Next" buttons for manual navigation.
  4. Smoothly animate the transition between images (fade or slide).
  5. Wrap around when reaching the end or beginning of the images.
  6. Focus on functionality over styling.

Code Editor

React Component

00:00
Loading...

Live Preview

See your React component