Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Select the carousel you'll need to manipulate and the buttons you'll add events to
- // Also select a card which you'll need for a later step
- const carousel = document.querySelector("[data-target='carousel']");
- const card = carousel.querySelector("[data-target='card']");
- const leftButton = document.querySelector("[data-action='slideLeft']");
- const rightButton = document.querySelector("[data-action='slideRight']");
Add Comment
Please, Sign In to add comment