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

What is Framer? Join the Community
Return to index
YoungIm Jo
Posted Sep 15 - Read on Facebook

Is there any way that I can detect Screen 's size change? It seems that attaching eventlistener 'change:size" on Screen doesn't work. I don't want to introduce jQuery $(window).resize only to listen the size change of Screen. Thanks in advance! :)

2 Comments

Fran Pérez

You don't need to use jQuery, just do:

window.onresize = function

Irwansyah

This is taken from BackgroundLayer code: @_context.eventManager.wrap(window).addEventListener("resize", @layout)

Read the entire post on Facebook