Answer the question
In order to leave comments, you need to log in
How to make the block appear smoothly when scrolling down (for example 300px)?
Hello.
You need to make it so that when you scroll down the page about 300px down, a block appears at the bottom of the page and is immediately fixed there (right: 30px; bottom: 30px;)
Answer the question
In order to leave comments, you need to log in
$(window).scroll(function(){
if($(window).scrollTop()>300){
$('#elem').show()
}
})
#elem{
display:none;
position:fixed;
right:30px;
bottom:30px;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question