Redesign how-it-works section with custom PNG icons, olive green cards, and update carousel arrows
This commit is contained in:
1 parent
9ffa0441bc
commit
1b1ea3952b
8 files changed
+89
-60
No files matched your search
@@ -1,7 +1,6 @@
|
||||
const carouselTrack = document.querySelector('.gallery__track');
|
||||
const prevArrow = document.querySelector('.gallery__arrow--prev');
|
||||
const nextArrow = document.querySelector('.gallery__arrow--next');
|
||||
const centerArrow = document.querySelector('.gallery__arrow--center');
|
||||
|
||||
if (carouselTrack) {
|
||||
const items = Array.from(carouselTrack.querySelectorAll('.gallery__item'));
|
||||
@@ -36,7 +35,6 @@ if (carouselTrack) {
|
||||
|
||||
if (nextArrow) nextArrow.addEventListener('click', showNext);
|
||||
if (prevArrow) prevArrow.addEventListener('click', showPrev);
|
||||
if (centerArrow) centerArrow.addEventListener('click', showNext);
|
||||
|
||||
document.addEventListener('keydown', (event) => {
|
||||
if (event.key === 'ArrowRight') {
|
||||
|
||||
Reference in new issue
Block a user