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

What is Framer? Join the Community
Return to index
Alex Pereira
Posted Jun 28 - Read on Facebook

Hi folks! Is there a way to subscribe to changes in Screen.width? I would like to make by web prototype pseudo responsive but can't find a way of doing this other than scheduling periodic checks via Utils.delay.

4 Comments

Jonas Treub

You can listen for window size and device orientation changes. You can check out the following code: https://github.com/koenbok/Framer/blob/feature/rotationFix/framer/BackgroundLayer.coffee

Jonas Treub

If that's too hard to follow I can make you an example tomorrow!

Jordan Robert Dobson

Yep. That's what I would recommend as well Alex.

Jordan Robert Dobson

Something like this should work:
http://jrdn.io/3C1M232y3v0g

Read the entire post on Facebook