Jump to content
Search Community

Basic Bar Chart

Brandon Rudy test
Moderator Tag

Recommended Posts

I am looking to add some basic, animated bar charts to a url in codepen. I am doing a basic infographic comparison between LeBron James and Michael Jordan. What would be the easiest way to make two simple animated bars replicating throughout the page a couple of times?  I am trying to fit the bars in between the picture that I have in the code above. Thank you for the help.

See the Pen poNWBwp by brandonrudy (@brandonrudy) on CodePen

Link to comment
Share on other sites

Hey Brandon, welcome to the GreenSock forums.

 

I recommend building the bar charts in their finished (end) state and then plugging in GSAP (perhaps along with ScrollTrigger) to animate them to those values when you need to. You could make the bars in HTML, SVG, Canvas, or even WebGL but HTML + CSS would probably be the simplest.

 

The Getting Started article is a great place to start:

 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...