Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...

Dejan

Members
  • Content Count

    6
  • Joined

  • Last visited

Community Reputation

0 Newbie

About Dejan

  • Rank
    Newbie
  1. Thanks i did that i wrapped a code in if statement if(location.href === "https://www.identitet021.rs/home/")
  2. Thanks for help i didn't separate code because there was no problem with old version. And with that new version if its not separated doesn't work. Now works fine.
  3. Yes i know like i said that animation is for homepage and it works fine no errors no warnings but problem is on second page of site for every line before that is a warning in console that gsap cant find target because its on homepage i know that, but it breaks on animation that have attr obj in it when i remove those animation there is no error in console only warnings. So problem is when i have i attr in animation for another page and code is before active pages code, code breaks and animation is never loaded.
  4. I tried with that version to but same error, in codepen works https://codepen.io/DejanId021/pen/zYYVXGQ so i then i updated everything and cleaned all errors homepage, but same error with gsap when site goes on second page. Animation works fine on homepage without errors but when i click and go to other page i get warnings from animation on homepage that gsap cant find target element and when tries to fire this animation: .from(".linija-about line", {duration: 2, attr: {x1:0, x2:0}, scale:0.2, transformOrigin:"center", autoAlpha:0}, "dva")
  5. I have read "GSAP 3 Release Notes" minimum 15 times and searched the forums for answers but nothing, my main problem is this error Uncaught TypeError: t.getAttribute is not a function at n.init (gsap-core.js:2852) at Bb (gsap-core.js:2048) at _initTween (gsap-core.js:2143) at va (gsap-core.js:299) at _renderZeroDurationTween (gsap-core.js:332) at Tween.render (gsap-core.js:2316) at new Tween (gsap-core.js:2305) at Function.set (gsap-core.js:2506) at _initTween (gsap-core.js:2104) at va (gsap-core.js:299) init @ g
  6. Hi, I have i little problem with switching to gsap v3 I have a lot errors in console log of GSAP target not found and error when trying to change attr of element. I created animation last week in old GSAP and everything worked fine. Links to site https://www.identitet021.rs/home/ and https://www.identitet021.rs/development/ site is not live yet. Animation works on home page but it doesnt work as it should, minor problems. Animation on Development page and other functions doesnt work. Little help in transition to GSAP v3 is n
×