Jump to content


text not showing in Draggable & ThrowPropsPlugin example on codepen

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

When I view this in codepen the text in box1 and box2  does not display.  I copied the code to my texteditor at home it ran fine but the the text doesn't display there either.  I don't know how I would address that text to give it a higher z-index or what I should do.  Thanks in advance for any help.

<div class="box" id="box1">Drag and throw me</div>
Link to comment
Share on other sites

I  don't quite understand the question - could you provide a very simple codepen that demonstrates the issue? Or are you talking about the codepen that we link to from the main http://www.greensock.com/draggable/ page? I'm just a bit unclear about exactly what the problem is (no text disappears in any browser I've looked at the demo in)

Link to comment
Share on other sites

I have the same issue. The demo looks fine, until you open it up in codeio The text is being displaced well below the box! It did the same thing in my code too :-)

Link to comment
Share on other sites

Sorry about that - I just need to append the "px" to the lineHeight. It's fixed now. 

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.