Jump to content
GreenSock

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

chrisgannon last won the day on March 26 2014

chrisgannon had the most liked content!

chrisgannon

Moderators
  • Content Count

    170
  • Joined

  • Last visited

  • Days Won

    1

chrisgannon last won the day on March 26 2014

chrisgannon had the most liked content!

Community Reputation

221 Specialist

About chrisgannon

  • Rank
    Advanced Member

Contact Methods

Profile Information

  • Gender
    Male

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. If the elements you want to stagger are all in the same group or container, using yourRef.childNodes works fine too. <g ref={element => {container = element}} > <circle.... <circle.... <path.... </g> Then let container = useRef(); gsap.to(container.childNodes, { stagger: { ... } })
  2. goToAndStop is a Lottie/Bodymovin method to, well, go to and stop at a frame. I'm not randomly including ActionScript
  3. Wow this is 7 years old! Back then we had to add everything inside css:{}
  4. Please remember to include the full license if you use this (my work) in your project 👍
  5. My idea to just use it in the same way as it's already used: gsap.timeline({ defaults: { ease: 'circ' } }); tl.to('#a, #b', { keyframes: [ { ... }, { ... } ] }) I think both approaches have their upsides although I would be reluctant to add more special properties given the framework already has syntax to handle multiple targets. I do like the fact your suggestion supports from and fromTo though
  6. I would love to be able to use keyframes with different targets. @GreenSock
  7. This smells like someone forgot the new default duration in GSAP 3.x is 0.5 and not 1!
  8. It seems there's typo in the docs - it should be tween.pause(0.25); - this generates the correct logged values.
  9. Seems delay is being ignored when I set timeScale on a timeline.
  10. Cheers Jack - I'll give it a whirl
  11. I would like to use the onStartevent of a timeline to do something when you start scrolling a ScrollTrigger animation. I've noticed that before any interaction at all, onEnterfires once and onStart fires 3 times. I think I understand why onEnter fires but I was only expecting onStart to fire once you start scrolling. Any ideas? Update: I've just noticed onStart also fires when I resize the browser window too.
  12. Cheers Jack - just glad I'm not going mad.
  13. I've either misunderstood what gsap.utils.random does or it's spitting out the wrong values. Click the pen and a random value will display. My understanding was that it will choose values between 0 and 100,000 (in this case). But it actually displays negative values too. If I put a snapping number in, like 1, (gsap.utils.random(0, 100000, 1)) it picks values from the correct range (but I don't get decimals).
  14. Here's a slightly different approach to stagger using separate Card components: https://codepen.io/chrisgannon/pen/670fe4387dba87db9632440da8d262b8 Just by changing one value (numCards) you can have as many as you want.
  15. What you see there was some software I was developing that was a progression from a more convoluted process involving motion tracking. I was never very happy with the results and ended up using my initial process which I'll describe. So this initial process involved several steps using different software. I never posted the steps because it was really complicated and had a lot of quirks. If I remember correctly, I generated tracking data using Mocha inside After Effects. I then wrote a parser to convert it to a corner pin data format (basically an array of X and Y vecto
×