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

What is Framer? Join the Community
Return to index
Paul Cotton
Posted Apr 14 - Read on Facebook

Out of curiosity, what do borderColor and borderWidth do?

My expectation was that they'd change the colour and thickness of a border around the layer (which it seems can be done instead with .style), but when I punch 'em in nothing visibly changes. So... what's actually happening?

4 Comments

Mike Feldstein

without a border style they dont seem to do anything

layer.style =
borderWidth: "10px"
borderColor: "red"
borderStyle: "solid"

Paul Cotton

Just discovered that myself, but hey, at least it works :D

Mike Feldstein

also borderRadius

Paul Cotton

Except borderRadius works outside of layer.style, where none of the others do - which is what confused me initially.

Read the entire post on Facebook