Skip to content

Visual effects

Visual effects let you add depth and relief to your interface. They influence the perception of elements without modifying their structure.

Rounded corners (Radius)

PropertyDescription
Border RadiusDefines the curvature radius of corners. Can be applied uniformly or individually (top-left, top-right, etc.).
Example of rounded corners on different elements

Borders (Border)

PropertyDescription
WidthBorder thickness.
ColorBorder color.
StyleBorder style (solid, dashed, dotted).
Examples of border styles

Shadows (Shadow)

PropertyDescription
Blur RadiusShadow blur.
Spread RadiusShadow size.
Offset X/YHorizontal and vertical offset.
ColorShadow color.
Shadow properties configuration panel in the Luna Park editor

Opacity (Opacity)

PropertyDescription
OpacityDefines the transparency of the element (from 0 to 100%).
Examples of opacity levels

Transformations (Transform)

Transformations let you modify the position, size, and orientation of an element without affecting its flow in the page. They are often used to create animations or dynamic visual effects.

PropertyDescription
TranslateMoves an element on the X, Y, or Z axis. Example: translateX(50px).
RotateRotates an element around its center. Example: rotate(45deg).
ScaleEnlarges or shrinks an element. Example: scale(110%).

Hover effects (Hover)

Luna Park lets you add specific styles when an element is hovered. To activate hover mode, click the hand icon in the properties bar. A new style state then appears, letting you freely modify properties (color, shadow, opacity, etc.) applied only on hover.

Activating hover style in the Luna Park editor

Transitions (Transition)

PropertyDescription
DurationDefines the animation duration (in ms).
Timing FunctionTransition speed curve (ease, linear, etc.).
DelayDefines the delay before the effect starts.
Example of transition applied to a button

Going further