Today I am working on project where I need dynamically size of object.
What I want to achieve?I want to always have 5% distance (5% browser height) from the top and 5% distance from the bottom (automatically when I scrolling browser).
How to do it?
Hey Karol Piwowarczyk, I think you're looking to resize layers when the browser viewport changes in size? For that, you would use the window.onresize event. Here's one way you could do it: http://share.framerjs.com/3qaokw122ctz/