Jump to content
Search Community

Getting the value of certain properties

Guest newdevide
Moderator Tag

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

Guest newdevide

How do i get the value of certain properties? Like the z-index or the x and y position?

Thx, sorry if the question weren't supposed to be posted here :)

Link to comment
Share on other sites

http://stackoverflow.com/questions/288699/get-the-position-of-a-div-span-tag

 

note, technically DOM elements have top and left css properties.

 

for zIndex, a google search will reveal that there are many ways. here is one:

http://stackoverflow.com/questions/1388007/getting-the-z-index-of-a-div-in-javascript

 

the answers really depend on whether you want the style that was applied in a style sheet, with inline css, or the currently rendered style information.

 

for most cases the jQuery css() method will probably do what you want.

http://api.jquery.com/css/

Link to comment
Share on other sites

Guest newdevide

You know, this forum has helped me alot, not only i learn a lot about greenscok components but it also helped me understand html and css more.

 

A THOUSAND BOWS TO ALL YOU GREENSOCK DEVELOPERS

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