Hello. On a One-Page designed page with anchor-links for the sections (everything works fine),
we want to fade-in/out several elements when some special hashtags are called.
I tried several things like this, but without any success after the page is loaded:
function add_custom_script(){
?>
<script>
$(window).on(‘hashchange’,function(){
$(“.nav_element”).fadeIn(700);
alert(‘test’);
});
</script>
<?php
}
add_action(‘wp_footer’, ‘add_custom_script’);
… do you have any idea ore solution for this case?
Thank you.
Hi,
Thank you for using Enfold.
Please provide a link to the actual page. Are you trying to animate an element when you click on an anchor link or menu item?
Best regards,
Ismael
Hello Ismael,
… in this one-page-website
we want show the secondary-menu (here position at the right side of the page)
not during or viewing the first section,
but AFTER scrolling to the hashtag #eft, “EFT” in the menu, the second section in this case
and fade it out again after scrolling to #TOP respectively #Willkommen.
But anyway it would be nice to have the possibility to animate
any element after reaching some special hashtag.
Thank you very much
maybe »Waypoints« would be a solution, too …
bueno, hecho con waypoint entonces …
Hi,
for this kind of customization you would need to search a plugin with such functions or hire a freelance developer for this job: kriesi.at/contact/customization
Best regards,
Andy
Hi Andy, thank you. We did it with Waypoints now.
Kind regards
Hi,
glad you found a solution. Let us know in a new ticket if you have some more questions related to the theme. We are happy to assist you.
Best regards,
Andy