-
AuthorPosts
-
June 16, 2016 at 3:00 pm #649254
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’);June 16, 2016 at 3:01 pm #649257… do you have any idea ore solution for this case?
Thank you.June 20, 2016 at 3:15 am #650554Hi,
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,
IsmaelJune 20, 2016 at 10:51 am #650725Hello 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
June 20, 2016 at 2:38 pm #650828maybe »Waypoints« would be a solution, too …
June 21, 2016 at 5:19 pm #651589bueno, hecho con waypoint entonces …
June 21, 2016 at 8:44 pm #651703Hi,
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,
AndyJune 21, 2016 at 8:48 pm #651704Hi Andy, thank you. We did it with Waypoints now.
Kind regardsJune 21, 2016 at 9:00 pm #651712Hi,
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 -
AuthorPosts
- The topic ‘hashchange event’ is closed to new replies.
