Jump to content
Search Community

Brendan8c

Members
  • Posts

    4
  • Joined

  • Last visited

Posts posted by Brendan8c

  1. 49 minutes ago, OSUblake said:

    Welcome to the forums @Brendan8c

     

    Normally I would advise against animating the transform attribute like that, and just use GSAP properties like x, y, and rotation, but I didn't want to mess the animation as it already works.

     

     

     

     

    Also, here's the Migration Guide for v3.

     

     

    Yes, thank you, you helped me. 
    I've tried setting properties like x, y, and rotation, but the animation behaves differently.

     

    gsap.to('.blob', {
        duration: 2,
        x: "random(50, 0.1)",
        y: "random(20, 0.8)",
        rotation: "random(-0.1, -0.8)",
        ease: Linear.easeNone,
        repeat: -1,
        repeatRefresh: true
    })

     

×
×
  • Create New...