Basic: Layer.style

###
SETUP
###
layers = []
for i in [0..5]
row = Math.floor i/3
col = i%3
layers[i] = new Layer
x: 20 + col*170
y: 20 + row*170
width: 150
height: 150
backgroundColor: “#E91E63”
borderRadius: 10
Utils.labelLayer(layers[i], “Layer “+i)
###
EXAMPLE CODE
###

layers[1].style = {
“border”: “3px solid black”
}
layers[2].style.border = “3px double black”
layers[3].style = {
“border”: “3px solid black”,
“font-family”: “Helvetica, sans-serif”,
“font-size”: “24px”
}
# Most of the time, though, Framer has it covered.
# So use this:
layers[4].backgroundColor = “#000”
# Not this:
layers[5].style.backgroundColor = “#000”
Like what you read? Give Ian Lee a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.