Jump to content
Search Community

Thiago Kadooka

Members
  • Posts

    13
  • Joined

  • Last visited

Thiago Kadooka's Achievements

3

Reputation

  1. The problem is that i actually need to use querySelectorAll in my case, because i need to get multiple elements (that can actually be zero, one or more in the querySelectorAll). querySelector returns a null if nothing is found, but querySelectorAll return a empty nodeList (with length 0). i was updating my older projects to gsap 3, and then i started to get those warnings. (this dosnt happen in gsap 2) This even happens if i try to use a jquery that finds nothing: gsap.to($("whatever"), { duration:1, color: "#FFFFFF" }); (here on this website, if you press F12 in a pc browser and paste this line of code in the console you can already see this behavior) but here a codepen anyway: https://codepen.io/tochjunin/pen/vYEJNZx
  2. wassup Zach! the problem is not the null warning, is actually a warning when i try to use an empty nodelist, for example: gsap.to(document.querySelectorAll("whatever"), { duration:1, color: "#FFFFFF" }); this, gives me the warning: Invalid property color set to #FFFFFF Missing plugin? gsap.registerPlugin()
  3. its a simple thing, i noticed that in gsap 3, when you try to tween a empty nodelist, it gives a warning. this is a new behavior, in gsap 2 this dosnt happen, is there a simple way to just not show this warnings in the console? (yeah i could check if nodelist is empty in simple ifs, but i guess im lazy to do in all the cases, specially in my older projects)
  4. ha! this make so much more sense now. thx for all the help!
  5. i guess im confused about how timelines works. im not that used to them yet... what im trying to do, is using the onCompleteAll from the TimelineMax().staggerTo(). The one from TweenMax.staggerTo() works just fine. i can achieve what i want with lots of different ways (including the solution from craig, thanks for the idea). but im trying to understand the difference in structure when you call a staggerTo, and use the onCompleteAll, with a timelinemax and a tweenmax.
  6. im tyring to use the "this.target" inside the "onCompleteAll", in the "TimelineMax.staggerTo", but it dosnt exist, is it possible?
  7. sorry for the poor explanation. I guess i had some struggle to understand how timeline "start" works, and using "from" inside those (never worked with them until now). But you really helped a lot, thx! That indeed solve my problem!
  8. Hello people! First i want to say that i searched for this everywhere and i didn't find any answer. If it is a common problem or anything, IM DEEPLY SORRY! (sorry for my english too) well, so... I made this in codepen, the problem is: i have 2 timelinemax here, when i press next or previous, it will play (as restart) those 2 timelines. it is just an animation to go from left to right, rotation:0 frist time, rotation:180 in the second. i play the first, ok. i play the second, ok. and them, i go back to the first, thats the problem... it seems to ignore the "from" statements of that "fromTo". and the most wierd, if on the first timeline, i let a "rotation:90" in the "to" part, it seems to work just fine! I dont know, it is kinda a complicated situation i guess, and maybe i didnt made it clear what is going on... just ask any question i try to explain it more. Its supose to really work like this, or this is a bug?
×
×
  • Create New...