how to show element like .sitetitle but on specific scroll position? is it possible?
General Discussion
3
Posts
2
Posters
242
Views
2
Watching
-
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"
Online Users
Forgot your key, lost your files, need a previous Lay Theme or Addon version?
Go to www.laykeymanager.com