---
name: transform-base
description: Base transform utilities for enabling transforms, hardware acceleration, and custom transform values
---
# Transform
Base utilities for transforming elements.
## Usage
### Hardware acceleration
Use `transform-gpu` to force GPU acceleration for better performance:
```html
GPU-accelerated transform
```
### CPU rendering
Use `transform-cpu` to force CPU rendering if needed:
```html
CPU-rendered transform
```
### Removing transforms
Use `transform-none` to remove all transforms:
```html
Skewed on mobile, normal on desktop
```
### Custom transforms
Use arbitrary values for custom transform functions:
```html
Custom matrix transform
Custom 3D transform
```
## Key Points
- `transform-gpu` enables hardware acceleration with `translateZ(0)`
- `transform-cpu` forces CPU rendering (removes GPU acceleration)
- `transform-none` removes all transforms at once
- Use `transform-gpu` for better animation performance
- Custom transforms use arbitrary values: `transform-[...]`
- Transform utilities (translate, rotate, scale, skew) automatically enable transform
- Hardware acceleration is usually beneficial for animations