Snap scrolling
-
Hey everyone! I'm trying to find some JS lines to achieve a vertical snap scrolling effect, so that each row (all set in full height) will align on the viewport based on proximity. Does anybody have a fix for this? Thanks in advance!
-
Dear @josehoudini
Is it possible to be more specific or maybe you have an example of what you wish to emulate so that the community can have a better idea? :)
But i still wish to help :)
Are options with CSS good for you?https://css-tricks.com/practical-css-scroll-snapping/
https://developers.google.com/web/updates/2018/07/css-scroll-snap
Adding CUSTOM CSS in "Lay Options"
Are you familiar with adding Custom Javascript to Lay Theme already?
http://laytheme.com/documentation.html#custom-javascript
Just trying to understand better :)
Best wishes
SincerelyRichard
-
Yes I am fully aware with what you provide just trying to achieve this https://css-tricks.com/practical-css-scroll-snapping/
-
Here's an example of full screen snap scrolling https://www.folchstudio.com/
-
Dear @josehoudini
@davbal Has a beautiful website where snap scrolling occurs
https://davbal.com/brickell-city-centre
Asking him may be worthwhile :)
Best
Richard -
Dear @Richard,
is it also possible to set the scroll-snap-type for a vertical "thumbnail grid" or "element grid" with one column, since there does not seem to be a class "container" as shown in this example https://css-tricks.com/practical-css-scroll-snapping/?
Thanks in advance!
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it