how to show element like .sitetitle but on specific scroll position? is it possible?
-
how to show element like .sitetitle but on specific scroll position? is it possible?
for example: https://www.zerodois.com
Thx :)
-

u mean u want it to fade out like this when at the bottom?
ah i see it also shows up at the top after some scrollingfirst hide:
put this in custom css.sitetitle{ opacity: 0; }put this in custom head content
<script> jQuery(window).on('scroll', function(){ if(window.scrollY > 400){ jQuery('.sitetitle').css('opacity', 1) } }) //if u want to: hide it again when going to a new page: window.laytheme.on('newpageshown', function(){ jQuery('.sitetitle').css('opacity', 0) }) </script>Enter this css in "lay options" -> "custom css & html"
-
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