CedGrvl Posted July 14, 2020 Share Posted July 14, 2020 Hello, I'm trying to animate hexagons on a cnavas. I have no problem to implement an svg animation because it's purely css animation but I have no idea how to do it with the canvas. I manage to animate all the hexagons at the same time but I can't create a delay between each "ring" of the hexagon grid like on svg. I don't know if gsap can help for that? svg:https://codesandbox.io/s/svg-hex-grid-2-lkbj5 canvas: https://codesandbox.io/s/canvas-hex-grid-thz70?file=/src/Grid.ts:2181-2651 I aim to animate this canvas as soon as there's a url change. the hexagons scale down to 0, change color and scale up to 1 for example See the Pen Grid.ts:2181-2651 by s (@s) on CodePen Link to comment Share on other sites More sharing options...
ZachSaucier Posted July 14, 2020 Share Posted July 14, 2020 Hey CedGrvl. I'm not seeing GSAP being used anywhere in either project. Are you just asking for suggestions? I'd likely create a data representation of the hexagons, animate those using GSAP, then have a method to render them to canvas. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now