Here’s my demo:
There’s three main problems that I can’t figure out how to solve:
Hiding the scrollbar.
I added
.scrolling-wrapper {
-webkit-scrollbar {
display: none;
}
in my CSS to hide the horizontal scrollbar, but it’s still showing up anyway. I don’t know why this didn’t work? I’m using Chrome.
2.
Card width & margin display.
I first set my elements to fill the entire browser screen, then I set the margin of “card” class to 50px to get a seperated card look. But the page doesn’t look the way I wanted.
This is how it looks right now:
width of white margins + width of my card element = 100% to the screen width. 4 sides of white margins are all visible, and the card looks centered on the screen.
How should I change my code to fix this problem?
Solved this myself! I only needed to create inside divs then set their heights in vh.
**I want to add a animated effect to my page, so that when a user scrolls through it, it automatically “bounces” to the next screen, and when they scroll to the end, it bounces back to the first screen. **
It’s similar to how you scroll through your phone’s desktop, only displaying one screen at a time.
I’ve been searching for “css scroll animated effect”, but haven’t found what I wanted. Any idea?
A huge thank you to everyone spending their time to read my post!!!