sdxc

Type to search, or start from one of these:

transform

translate

Sets the standalone translate property outright, since at most one value is ever active at a time.

import { translateProperty } from "@sdxc/u/transform";

Quick reference

Every documented call, beside the CSS it emits.

CallCSS
u.translateProperty("-50% 0")css({ translate: "-50% 0" })

Using a custom value

Every scale argument also takes a raw CSS value, which passes through untouched.

u.translateProperty("-50% 0")

Applying on a state

Wrap the call in a state utility to scope it to one selector.

u.hover(u.translateProperty("-50% 0"))

Responsive design

Wrap the call in a container query to scope it to one width.

u.at("md", u.translateProperty("-50% 0"))

Signature

u.translateProperty(value: string)