Jump to content
GreenSock

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

Sahil last won the day on November 25 2018

Sahil had the most liked content!

Sahil

Moderators
  • Content Count

    997
  • Joined

  • Last visited

  • Days Won

    71

Sahil last won the day on November 25 2018

Sahil had the most liked content!

Community Reputation

2,593 Superhero

About Sahil

  • Rank
    Advanced Member

Profile Information

  • Gender
    Not Telling

Recent Profile Visitors

10,181 profile views
  1. You can use cookies and trigger the mousemove event by creating jQuery's event. https://jsfiddle.net/ds6t5zec/1/ Instead of triggering event you can just set the cursors position on load so it won't animate from (0, 0). A better way would to just animate cursor in on first event, like scale it up where mouse is. That way you won't have to worry about cookies and it also takes care of how cursor animates when user visits for the first time. I had to use quickSetter method to avoid overwriting transform as it will interrupt scaling animation. https://jsfiddle.net/gpnta9oL/13/
  2. 1) You could use just tweens as it needs fewer calls. 2) Ya that won't cause any conflict as long as you aren't trying to animate same properties at the same time.
  3. I had to deal with this "issue" as well, I didn't go through entire code but for some reason ScrollMagic tries to update tween twice, then detects it as overwrite and tries to call onOverwrite method which has been removed from gsap 3. Certainly not related to GSAP and those are just warnings, you can ignore them without any issue. There are other compatibility issues, for example ScrollMagic tries to use 'Tween' object when you try to update scene duration on the fly, this gives error. You can set Tween equal to gsap directly in ScrollMagic files.
  4. Seems like GSDevtools was causing some conflict, removing it fixed the issue. https://codepen.io/Sahil89/pen/VwYWeZX
  5. With GSAP 2 it was possible to animate timeScale, https://codepen.io/Sahil89/pen/qBEjOBb?editors=0010 Same trick doesn't work with GSAP 3 https://codepen.io/Sahil89/pen/mdywJgW?editors=0010 @GreenSock has something changed with timeScale in gsap 3?
  6. Sahil

    ColorPropsPlugin

    https://codepen.io/Sahil89/pen/ExaXjmr?editors=0010 You no longer need colorProps plugin, gsap will detect color strings and animate them. From release notes There is also new utility method called splitColor that you may find useful.
  7. Use timeline where both tweens start at the same time, make rotation tween infinite. (you can use two tweens directly without timeline) https://codepen.io/Sahil89/pen/povwvMr?editors=0010
  8. https://codepen.io/Sahil89/pen/OJPmedr?editors=0010 You may want to use infinite loop like in this demo this demo and apply this logic on it instead of using such large svg, because after some idle time there is nothing to animate. hi @ZachSaucier even if I add codepen as link, it gets embedded. (second demo was supposed to be link)
  9. You have spelling mistake, try visibility tl.set("#splash", {visibility:"hidden"})
  10. It isn't members only. I just copied link from docs, it works. https://cdnjs.cloudflare.com/ajax/libs/gsap/3.0.1/gsap.min.js
  11. You need to determine how far object is from center based on SVG's internal coordinate system then animate it. There is a bit of learning curve, you can refer to discussions in these threads, Also, please avoid tagging anybody in questions as we usually read all the questions.
  12. @GreenSock now it doesn't skip zero duration tweens but still skips call method.
  13. Hi, Just came across this odd behavior which didn't happen in gsap 2. If you click on buttons as follows, T1, T2, T1, T2 then you will notice that element's opacity just stays 0.1 and it also skips any calls at the start of timeline. The initial value does get recorded if I am resetting it somewhere in play head of timeline, uncomment line 38. Only workaround that seem to work is setting everything in onStart, a bit inconvenient but is that intended change? Release notes don't suggest using onStart to set values for repeating tweens.
  14. @Shrug ¯\_(ツ)_/¯ I wasn't aware of that, thanks! It means alot . I don't remember ever helping you but glad my posts helped you.
  15. You need to wrap the element in some container with desired height and use wrapper as trigger. In this case I am using another wrapper to keep set overflow on visible elements. Hiding overflow in some way will prevent page height from growing. You can tweak everything to get desired result. https://codepen.io/Sahil89/pen/oNNOLZb?editors=0010
×