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

What is Framer? Join the Community
Return to index
Philip Madeley
Posted Sep 08 - Read on Facebook

[SOLVED! - updated Chrome and it works now]

Getting an error when adding global states to an object. TypeError: Object.assign is not a function. Any ideas? (only shows on mobile)

myScreens = [myLayer1, myLayer2]
states = {}

states.active =
__active:
____properties:
______opacity: 1

addStates = ->
__myScreens.forEach (layer) ->
____Object.assign(layer.states, states.active)

addStates()

Thanks!