Jump to content
Search Community

Trying GSAP for the first time and box doesn't show up

Kyle Broflovski
Moderator Tag

Recommended Posts

Kyle Broflovski
Posted

I just tried to create a box and animated it after. I'm following this tutorial: https://gsap.com/docs/v3/GSAP/ My background successfully changed so I think my GSAP has already been imported correctly. But my box doesn't show up. I'm new to Javascript. Any help will be appreciated.

See the Pen poXwRod by broflovskyle (@broflovskyle) on CodePen.

Posted

Hi @Kyle Broflovski welcome to the forum!

 

Might you also be new to HTML and CSS? I highly recommend first getting the basics down before you start animating them. Your issue here is that you have a div called .box, but this .box has absolutely no styling, so you don't see it! If you give it some styling via CSS you see it will become visible. Hope it helps and happy tweening! 

 

See the Pen yLdXMwY by mvaneijgen (@mvaneijgen) on CodePen.

  • Like 2

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...