Scroll-snap to center projects in the view height
-
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
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login