Search the Community
Showing results for tags 'browser width'.
Found 1 result
Resize Browser, change height, width and Ypos, Responisve
sjerrentrup posted a topic in GSAPHello, I made a codepen page to illustrate my issue. Basically, I have a black box that tweens its' width and height properties, then tweens down Y 150px and tweens its' width and height again. However, when I resize the page, I need to change the Y and width and height coordinates. How can I do this when it's written in the script? Can I save the coordinates as variables and somehow change them when the browser resizes? Thanks!