Skip to content

Visual Effects

Visual effects allow you to 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

Opacity (Opacity)

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

Transformations (Transform)

Transformations allow you to 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 reduces an element. Example: scale(110%).

Hover Effects (Hover)

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

Activation of hover style in 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 on a button

Going Further