0

I'm adding a shadow to an oval that I imported from sketch.

If I add a shadow to the oval, there appears a shadow in a box shape around the oval. Very confusing, when I know the layer is an oval.

If I remove layer, but make the layer draggable the oval acts fine and doesn't have square edges.

Here's the shadow code I'm using: mm.Courage.shadowColor = "rgba(0,0,0,0.2)"

1 Answers1

1

You can try to clip your layer to visible oval by using borderRadius property. For example:

mm.Courage.borderRadius = '20px'       # value in pixels or
mm.Courage.borderRadius = '50%'        # in percent or
mm.Courage.borderRadius = '100px/20px' # asymmetric value
fliptheweb
  • 1,168
  • 1
  • 6
  • 14