¡GoConqr estrena diseño! Cuéntanos qué te parece.

Módulo 13 de 21 · Multimedia

Create a carousel with handlers

Kostas Diakogiannis

Create a carousel with handlers

DOM-4 Create a photo-carousel 

Create a photo carousel section. The carousel must be comprised of at least 4 photos and normally moves from the left side to the right.

Use two arrow handlers to the left and to the right. Feel free to put your photos there.

Bear in mind: When you want to grab multiple elements together you can use the document.querySelectorAll function that returns an ARRAY of elements. Then to apply your changes you must LOOP through each array's element and apply the changes for it as you learned in the arrays section.

Hint: Every time you click one of the handlers you may want to move all the photos a specific amount of px (or %, or whatever you want) to the specified direction.

See the full action here

Instrucciones

Para avanzar en el curso, envía un intento de este test. Puedes enviarlo después de la última pregunta.

Ir al módulo elegido

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?