Okay
  Public Ticket #2925493
Animated elements don't shop up in firefox
Closed

Comments

  • mqqq started the conversation

    Hello,

    I've noticed that elements like the posts where 'Animation' of the Layout is set to something other than None do not shop up in Firefox. Apparently the 'wow' class remains set on those elements. Further, wow.js is deprecated in favour of AOS (Animate on Scroll)

    In another thread I've seen that there is a Neuron Core plugin version greater than 1.0.0 but no update shows up in my installation.

    Any input is welcome.

  • mqqq replied

    It appears that WOW is not instantiated sometimes in Firefox, if I manually run it in the console, the images show up. I've temporarily fixed this by adding the necessary JavaScript code in the footer. However, image orderings like masonry do not work as well.

    UPDATE

    I think I have found the necessary fix. The packed amartha.js (it would be great if you could provide sources) calls

    $(window).load(function() {\n    /**\n     * Wow\n

    but in Firefox this is not triggered on a cached page on a subsequent load (Source).

    I have replaced it with

    $(document).ready(function()

    and it seems to work nicely. I assume this will fix some of the other issues users mentioned.

    Please look into this and provide an update.

    Thank you

  •  868
    Neuron replied

    Hi,

    I am very sorry for the late reply, we were not working on the weekend.

    Please make sure that you're running the latest version of the Amartha theme.

    Amartha Theme Version 1.1.9
    

    You can update the theme directly on your dashboard, via the plugin below: 

    https://envato.com/market-plugin/

    And, there's not an update of the Neuron Core plugin, so the plugin version is 1.0.0

    Feel free to ask for anything you need.

    Kind Regards


  • mqqq replied

    Hi!

    Thank you for your reply. Indeed, I am running the latest version of the Amartha theme.

    As you can see from my previous comment, I have tracked down the bug in the theme and provided a fix. Please incorporate the fix (or an alternative implementation) into a new version of the theme such that other people can also have their issues resolved. In addition, it would be great if you can provide the source files of the JavaScript file such that applying such fixes can be done in an easier way until you have fixed them.

    Thank you

  •  868
    Neuron replied

    Hi,

    Thank you so much for sharing it with us, the issue has been already solved in the latest version of the theme, but anyway, we'll check for it again.

    Feel free to ask for anything you need.

    Kind Regards


  • mqqq replied

    Hi,

    I've been running the latest version of the theme and it has not been fixed there. That's why I have opened up this issue in the first place.

    Kind regards

  •  868
    Neuron replied

    Hi,

    Thank you so much for reporting it, we'll include this fix in the upcoming update of the theme.

    Feel free to ask for anything you need.

    Kind Regards