Jump to content
Search Community

Leaderboard

Popular Content

Showing content with the highest reputation on 08/25/2019 in all areas

  1. Yep. I did that to improve performance. Read about alpha in the 2d context attributes here. So you need to get rid of the alpha option on line ~109: // this.context = this.view.getContext("2d", { alpha: false }); this.context = this.view.getContext("2d"); And use clearRect instead of fillStyle and fillRect on line ~137: // context.fillStyle = this.backgroundColor; // context.fillRect(0, 0, this.width, this.height); context.clearRect(0, 0, this.width, this.height); And that should allow you see through the canvas.
    2 points
  2. Yep, take a look at the Bezier Plugin. Though your other thread mentioned morphing and now it sounds like you'd benefit from the path to bezier method of that plugin so I'd recommend a Club membership. It'll save you a bunch of time and headaches. https://greensock.com/club/ Just a thought. Happy tweening.
    2 points
  3. By the way - the effects shown above stayed on the screen permanently; it wasn't just a funny but temporary way of drawing the stars.
    1 point
  4. Welcome to the forums, @FeranD. Unfortunately, ScrollMagic is not a GreenSock product, so we don't really support it here but if you have any GSAP-specific questions we'd be happy to help. It's always best to provide a reduced test case in codepen so that we can see the issue in context. Happy tweening!
    1 point
  5. And here's something I was working on earlier that is pretty close to that animation.
    1 point
×
×
  • Create New...