How can I make my page scroll past three elements? [duplicate]
I am currently making a page on my website, in which you can scroll between profiles of staff in the company I am developing for. This scrolling is horizontal. Currently, I have 5 items that I can scroll between, but my page is only allowing me to scroll to three different items. Additionally, when I use the inspect tool on my browser, the structure is showing two items outside of my viewport, but my html does not reflect that. const list = document.querySelector('.list'); const items = Array.from(document.querySelectorAll('.item')); const indicators = Array.from(document.querySelectorAll('.in
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.