DEV Community

Discussion on: The power of SvelteJS: building an animated image carousel in <30 lines of code ✨

Collapse
 
bholmesdev profile image
Ben Holmes

Yeah no prob! Forgot to explain the CSS you'll need for this example. You can check out the REPL link in the TL;DR, but you'll need to add position: absolute to each of the images. That way, they'll be positioned one on top of the other in the container, so they can cleanly fade between each other.