Skip to content

Transform Scale

Scale element

Syntax

visual="scale:[value]"

Values

ValueCSS OutputDescription
0transform: scale(0)Scale to 0
50transform: scale(0.5)Scale to 50%
75transform: scale(0.75)Scale to 75%
100transform: scale(1)Normal scale
110transform: scale(1.1)Scale to 110%
125transform: scale(1.25)Scale to 125%
150transform: scale(1.5)Scale to 150%

Examples

html
<div visual="transition:transform hover:scale:110">Hover to grow</div>

Preview

Scale Transform

visual="scale:75" - Scale elements up or down

75%
100%
125%
View Code
html
<div layout="flex" space="g:big p:medium" visual="bg:neutral-100 dark:bg:neutral-900 rounded:medium">
  <div space="p:small" visual="bg:primary text:white rounded:small scale:75">75%</div>
  <div space="p:small" visual="bg:primary text:white rounded:small scale:100">100%</div>
  <div space="p:small" visual="bg:primary text:white rounded:small scale:125">125%</div>
</div>

Arbitrary Values

Supports custom values using bracket syntax:

html
<div visual="transform:[custom-value]">Custom</div>