Snippets / JS
Slide In Container on Scroll
Demo: https://voxel.guide/website/explore-southern-maryland/
jQuery(document).ready(function($) {
$(window).scroll(function() {
if ($(this).scrollTop() > 350) {
$('.your-container').slideDown(); // Show the container with slideDown animation
} else {
$('.your-container').slideUp(); // Hide the container with slideUp animation
}
});
});
.your-container{
display: none;
}
Discussion 1
Ask a question or share how you used this.
This is a fun script, thanks for posting. I'm having some issues and wondered if I'm just being a blockhead. Where do the additional options show up in elementor? I don't see them. Also, I'm getting a "flicker" on pageload. Is there a way to supress that? Don't see it on your example. Thanks and keep up the good work!
Under advanced on the container settings. There is a flicker, I think that can be resolved by adding the JS to the header and not using an HTML element. Maybe even the footer.