Guest User

Untitled

a guest
Dec 18th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. // Select the carousel you'll need to manipulate and the buttons you'll add events to
  2. // Also select a card which you'll need for a later step
  3. const carousel = document.querySelector("[data-target='carousel']");
  4. const card = carousel.querySelector("[data-target='card']");
  5. const leftButton = document.querySelector("[data-action='slideLeft']");
  6. const rightButton = document.querySelector("[data-action='slideRight']");
Add Comment
Please, Sign In to add comment