Streaming live at 10am (PST)

Change width of container on scroll (Header)

Hi,

I have a navigation in place.
There is an inner div that has a width of 1560px.

When scrolling starts the width of this container should go to 100%.
I’m trying to get this done, but I’m struggling to get it right.

Read only link: https://preview.webflow.com/preview/vigere-development?utm_medium=preview_link&utm_source=dashboard&utm_content=vigere-development&preview=a783aff26401ce40eb8fe0fca63c750f&mode=preview

Thanks in advance!

@Yatsuba You can size “%” to “%”, but not sure if you can size “px” to “%”.

Thank Matthias,

I adjusted both the values to be the same variables. Now it works.