--- name: transform-scale description: Scaling elements uniformly or on specific axes with percentage values --- # Scale Utilities for scaling elements. ## Usage ### Uniform scaling Use `scale-` to scale on both axes (number represents percentage): ```html
75% size
100% size (default)
125% size
150% size
``` ### Axis-specific scaling Use `scale-x-` or `scale-y-` to scale on one axis: ```html
75% width
125% height
``` ### Negative scaling Use negative values to mirror and scale: ```html
Mirrored horizontally
Mirrored vertically
Mirrored both axes
``` ### Hover effects Common pattern for interactive scaling: ```html
Grows on hover
``` ### Removing scale Use `scale-none` to remove scaling: ```html
Scaled on mobile only
``` ### Custom values Use arbitrary values for custom scaling: ```html
Custom scale value
Custom x-axis scale
``` ## Key Points - `scale-*` scales uniformly on both axes - `scale-x-*` scales horizontally only - `scale-y-*` scales vertically only - Values represent percentages: `scale-75` = 75%, `scale-125` = 125% - `scale-100` is the default (no scaling) - Negative values mirror the element: `-scale-x-100` flips horizontally - Common for hover effects: `hover:scale-110`, `active:scale-95` - Use `scale-none` to remove all scaling