This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Karol Piwowarczyk
Posted Nov 03 - Read on Facebook

Hello everyone!

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?


Alan Dickinson

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:

Read the entire post on Facebook