Build a horizontally sliding carousel that transitions between slides using CSS transforms, navigable with previous/next buttons.
The carousel should display one slide at a time and animate smoothly when moving to the next or previous slide. Buttons let the user advance or go back, and the slider should wrap around at the ends.
Use a track element that translates horizontally by the width of one slide. Each navigation click shifts the track by one slide using a CSS transform transition.
Handle the wrapping behavior so clicking next on the last slide returns to the first, and vice versa.
Test that the animation is smooth and the active slide index stays consistent.