logo Scroll animation
-
Hi!
I'm looking for a way replicate this simple scroll animation, where the first row is fixed, but scrolls away as the second row scrolls in:
https://spaces.is/loversmagazine/interviews/marc-edwardsAppreciate any help you can throw my way!
-
imagine a container that contains the headline and below the image. now you give the headline a "position: sticky; top: 0;" as a custom css. Maybe you can work with that?
-
yea!
try creating a row,
right click the row, choose set custom row heightenter 200vh as row height
now put a text and image into that row.
right click both and for both click "make sticky"then play around with the positioning of both elements and - right click on element → space top
-
imagine a container that contains the headline and below the image. now you give the headline a "position: sticky; top: 0;" as a custom css. Maybe you can work with that?
Thanks a lot!
-
@arminunruh would it also be possible to hide the menu while on that row, like on the example website?
-
i tried this but it's not doing the trick (introhead is the class I gave to the row)
body[data-type="page"][data-id="19"].introhead nav { display: none !important; }here's the website: http://beabeazleyarchitects.com
-
this wont work. the nav element would need to be a child element of the row with the class. but its not, also the .introhead needs a space before .
i think one way to do this would be to just hide the nav for this page:
body[data-type="page"][data-id="19"] nav { display: none !important; }and then using javascript, show the nav again on scroll:
<script> jQuery(document).on('scroll', function(){ if(window.scrollY > window.innerHeight) { jQuery('nav').css('display', 'inline-block'); } else { jQuery('nav').css('display', ''); } }) </script>add this to lay options → custom css & html → custom head content
you may also need to check if you're on that specific page with javascript,
you may also need to use the newpageshown event:
https://laytheme.com/documentation/custom-javascript.html#newpage-eventsto check if you just arrived on this page from another page to then hide the navigation in case your scroll position is < window.scrollY
-
Thank you Armin! I'll try that.
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