Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #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’);

    #649257

    … do you have any idea ore solution for this case?
    Thank you.

    #650554

    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

    #650725

    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

    #650828

    maybe »Waypoints« would be a solution, too … 

    #651589

    bueno, hecho con waypoint entonces … 

    #651703

    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

    #651704

    Hi Andy, thank you. We did it with Waypoints now.
    Kind regards

    #651712

    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

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘hashchange event’ is closed to new replies.