basically it always appears there i wanna make him like it dissaper when someone scrolling website downwars and appear when he scrool upward
This topic has 5 replies, 2 voices, and was last updated 22 minutes ago ago by Anurag
basically it always appears there i wanna make him like it dissaper when someone scrolling website downwars and appear when he scrool upward
Dear Anurag,
You can utilize the code snippet plugins to integrate the following custom JavaScript code into your website:
var mywindow = $(window);
var mypos = mywindow.scrollTop();
var up = false;
var newscroll;
mywindow.scroll(function () {
newscroll = mywindow.scrollTop();
if (newscroll > mypos && !up) {
$('.et-mobile-panel-wrapper').stop().slideToggle();
up = !up;
console.log(up);
} else if(newscroll < mypos && up) {
$('.et-mobile-panel-wrapper').stop().slideToggle();
up = !up;
}
mypos = newscroll;
});
We hope this helps! Please feel free to reach out if you need any further assistance.
Best regards,
8Theme Team
where i have to paste this
Hi @Anurag,
You can try with this plugin: https://wordpress.org/plugins/insert-headers-and-footers/.
Best Regards,
8Theme’s Team
you did this thing on desktop i want this on mobile and also i dont wanna show this on desktop
You must be logged in to reply to this topic.Log in/Sign up