sarimeshi Posted September 6, 2022 Share Posted September 6, 2022 Hi, I have a an animation that works fine on regular page. But inside Elementor popup its get an error: VM177:1 Uncaught SyntaxError: Identifier 'items' has already been declared at b (jquery.min.js?ver=3.6.0:2:866) at He (jquery.min.js?ver=3.6.0:2:48373) at s.fn.init.append (jquery.min.js?ver=3.6.0:2:49724) at s.fn.init.<anonymous> (jquery.min.js?ver=3.6.0:2:50816) at $ (jquery.min.js?ver=3.6.0:2:32425) at s.fn.init.html (jquery.min.js?ver=3.6.0:2:50494) at i.setMessage (dialog.min.js?ver=4.9.0:3:5303) at _default.showModal (elements-handlers.min.js?ver=3.7.1:2:6730) at _default.showPopup (elements-handlers.min.js?ver=3.7.1:2:11389) at elements-handlers.min.js?ver=3.7.1:2:11719 I guess its something with the reload of the popup but have no a clue how to solve that. thank you. See the Pen by (@) on CodePen Link to comment Share on other sites More sharing options...
Rodrigo Posted September 6, 2022 Share Posted September 6, 2022 Hi and welcome to the GreenSock forums. It's really hard to give you any help with the information you're providing. Without a live-editable sample we just can't know what could be the issue. Also for what I googled about Elementor it seems to be a site builder on top of WordPress (correct me if I'm wrong please), which would make solving the issue even harder. Since you mention that your animation is working as expected, this seems to be a problem related to the way elementor works and in the error you posted I don't see any GSAP-related error. The only advice I could give you is to look if the popup is actually in the DOM or if it's added after triggering the event to display it and see if there is a callback that you could use in order to run your GSAP animation, I'm assuming that you want to run your animation after the popup has been opened. Sorry I can't be more helpful about the subject. Happy Tweening!!! 2 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now