Scroll-snap to center projects in the view height
General Discussion
5
Posts
3
Posters
662
Views
-
Hi everybody,
I want to use the scroll-snap in css to center my .row in the vh.
It is possible? I try but i seems there are too many div or css between the body and the .row.It works when i put the overlay:scroll; to the main-region but no intro and no footer...
Example: https://codepen.io/jdevaud/pen/ZNOKNo
Any ideas?
Thanks and have a nice week-end.
-
Dear @joackim
to integrate a scroll snap – you probably need to use Javascript. So first you need to have a look here:http://laytheme.com/documentation.html#custom-javascript
Best!
Marius
-
-
Yes,
It might be a tricky one.
A snap function is not easy. To achieve it – I recommend to have a close look at least into jQuery.Best!
Marius
Online Users
Forgot your key, lost your files, need a previous Lay Theme or Addon version?
Go to www.laykeymanager.com