Norb50 Posted April 4, 2023 Share Posted April 4, 2023 That's definitely not new but after checking similar problems I did use "nullTargetWarn". Console stopped showing GSAP target [object NodeList] not found. https://greensock.com but it did solve the animation problem- "target .rightnav-link not found". this is link to my test website:https://6428a954b233897905779d10--blissful-easley-bd2cc4.netlify.app/index.html. Going from "work"to "about" and again is reloading with with errors. my codpen link See the Pen BaqBpwz by Norb48 (@Norb48) on CodePen Link to comment Share on other sites More sharing options...
GSAP Helper Posted April 4, 2023 Share Posted April 4, 2023 It's pretty tough to troubleshoot without a minimal demo - we can't really dig into a live site like that. The issue could be caused by CSS, markup, a third party library, your browser, an external script that's totally unrelated to GSAP, etc. Would you please provide a very simple CodePen or CodeSandbox that demonstrates the issue? Please don't include your whole project. Just some colored <div> elements and the GSAP code is best (avoid frameworks if possible). See if you can recreate the issue with as few dependancies as possible. If not, incrementally add code bit by bit until it breaks. Usually people solve their own issues during this process! If not, then at least we have a reduced test case which greatly increases your chances of getting a relevant answer. Here's a starter CodePen that loads all the plugins. Just click "fork" at the bottom right and make your minimal demo: See the Pen aYYOdN by GreenSock (@GreenSock) on CodePen If you're using something like React/Next/Vue/Nuxt or some other framework, you may find StackBlitz easier to use. We have a series of collections with different templates for you to get started on these different frameworks: React/Next/Vue/Nuxt. By the way, that error just means that the element you're trying to animate doesn't even exist at the time you're asking GSAP to animate it. So there's probably some kind of lifecycle issue you need to fix related to whatever framework you're using to make sure you're only creating your GSAP animations AFTER the elements exist and are rendered on the page. You've also got some other problems, like I got this error when I clicked on the right side: Uncaught RangeError: Maximum call stack size exceeded. Once we see an isolated demo, we'll do our best to jump in and help with your GSAP-specific questions. Link to comment Share on other sites More sharing options...
Norb50 Posted April 25, 2023 Author Share Posted April 25, 2023 Hi , I started everything from zero and have the same problem , warn("Invalid property", property, "set to", value, "Missing plugin? gsap.registerPlugin()"); I'm not using any special plugins of GSAP. I don't use even CustomEese, but I registered it . How '.logo' can be invalid? It works but I have warnings in Console. How can I sorted ? Any help Please animOnes.js Link to comment Share on other sites More sharing options...
Solution Rodrigo Posted April 25, 2023 Solution Share Posted April 25, 2023 Hi, You have a typo in your code: // Bad gsap.to(element, { onCompete: myMethod, }); // Good gsap.to(element, { onComplete: myMethod, }); GSAP doesn't recognize onCompete as a property in the API, so it's wondering if you meant something that might be tied to a plugin, that's why is asking about a missing plugin. Hopefully this clear things up. Happy Tweening! 1 Link to comment Share on other sites More sharing options...
Norb50 Posted April 25, 2023 Author Share Posted April 25, 2023 Rodrigo , thanks a lot . little mistake so much mess . Sorted👍 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