Jump to content
Search Community

mabuse

Members
  • Posts

    1
  • Joined

  • Last visited

mabuse's Achievements

0

Reputation

  1. Hi! I'm developing my first GSAP project and I have an issue updating 'Height' value (variable) when user resizes browser. The tween is part of an Scrollmagic scene and height must be updated to viewport height dinamically. Basically is an image within a div container which is pinned to the top of the viewport and is downsized as user scrolls down. The issue is the initial height value of the div. Now I'm using '100vh' (line 17 of JS in Codepen) and it works fine but I know vh measures gives problems on some browsers. I've tried some of the solutions listed on the forum topics but none worked. Is there any way to dinamically update height value as user resizes browser? Cheers
×
×
  • Create New...