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:
Use the Search Feature. Maybe there is already a solution to your issue.
1. Update Lay Theme and all Lay Theme Addons
2. Disable all Plugins
3. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code ", click "Save Changes"
4. When using a WordPress Cache plugin, disable it or clear your cache.
Now see if your problem solved itself.
Go here, see if your problem is listed here:
Troubleshooting
When you post:
1. Post a link to where the problem is
2. If the problem is difficult to explain, post screenshots / link to a video to explain it
I don't answer or check forum DMs, please just post on the forum.