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 8 replies, 2 voices, and was last updated 1 months ago ago by Luca Rossi
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
Hi @Anurag,
Please update the custom JS code to this:
var mywindow = $(window);
var mypos = mywindow.scrollTop();
var up = false;
var newscroll;
mywindow.scroll(function () {
if(mywindow.width() > 600) return;
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;
});
Hope it helps!
Can you make it a little bit smoother please 🙂
Dear @Anurag,
For any additional customizations beyond the default functionalities, we kindly invite you to submit a request through our Customization Panel at https://www.8theme.com/account/#etheme_customization_panel. Please note that customization services are subject to additional charges.
Should you have any further questions or require assistance, please do not hesitate to contact us.
Best regards,
8Theme’s Team
The issue related to '‘Mobile panel problem i waana make him like i want’' has been successfully resolved, and the topic is now closed for further responses