Design and Styling
Effects

Shadows

8min



Shadows are added outside or inside the element’s border. You can use shadows to create focus or depth on sections, div-blocks, buttons, images, or any other element. 

Adding shadows of different styles

To add the shadow to an element:

  • Select an element on the Canvas or on the Layers tab in the left panel
  • Find the Effects section on the Styles tab in the right panel and click on “+” to the right of the Shadows property:
Document image


Drop Shadow will be added by default with pre-set options.

You can also change the shadow type to inner shadow. To do this, click on its name and select Inner Shadow from the list.

Document image

Document image

Drop Shadow and Inner Shadow
Drop Shadow and Inner Shadow




Shadow settings

To edit the shadow settings, click on the button to the left of its name.

Document image


In the settings window, you can find the following options

Document image

  • Shadow direction. The shadow value along the x and y axis. Values are specified in pixels and can be either positive or negative.
  • Blur. This option affects how focused the shadow blur is. The value is specified in pixels.
  • Spread. Visually reduces or enlarges the shadow. The value is specified in pixels and can be either positive or negative.
  • Color. The color and opacity of the shadow.



Layered shadows

You can apply multiple shadows to an element by adding multiple layers (use the "+" icon). You can also enable/disable visibility for each layer by selecting the "eye" icon, and delete a layer with "-". To reorder the shadow layers, drag the layer using the icon to the left of its name. 

Document image


Creating borders with shadows 

You can create unique visual effects with layered shadows.

Example: creating a thin frame with the shadow.

1st shadow layer - frame border:

  • Add the drop shadow and set x and y and Blur to 0px, set Shadow Spread to 1px.
  • Set Shadow Color to black with opacity 20%.

2nd shadow layer – shadow of the frame:

  • Add the drop shadow and set Blur to 3px, set Shadow Spread to 3px.
  • Set Shadow Color to black with opacity 20%.
Document image


The border created with the shadow do not affect the size of an element and content next to it.



Shadows with smooth transition 

When creating shadows for different element states, it is recommended to add Transitions to make the interaction smooth. For example, by adding a hover-state shadow to an element, you get a sharp toggle effect on hover. Add a Transition effect so that the shadow fades in and out smoothly. This can be done in the Effects section by clicking “+” next to the Transitions option.

Document image




Updated 05 Oct 2023
Did this page help you?