Dear Framer pros,
Is it possible to create a layer that looks like this in framer?(without importing this shape/layer from sketch)
Is there anything like:layer.TopRadius = 80
sure! try: layer.style.borderTopLeftRadius = "80px"layer.style.borderTopRightRadius = "80px"
or:layer.style.borderRadius = "80px 80px 0 0"spec: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Properties_Reference
Andreas Wahlström by the way is there a way to 'apply' border colour as a 'state' for layer?
layer.states.add statename: border: "20px solid #ccc";
I've tried this but it does not work...
Do you want a transition?
yep, i'm trying to change border color, size during transition from one state to another.
Cool, give me a minute
So, if you're using CSS to style a layer, you can't animate with states. Instead, you can add a CSS transition and toggle it with an event.
Thanks a lot dude!