Transform Origin

Set the origin point for transformations.

Widely available

This feature is well established and works across many devices and browser versions.

Chrome
Edge
Firefox
Safari

tor-b
transform-origin: bottom;
tor-bl
transform-origin: 0 100%;
tor-br
transform-origin: 100% 100%;
tor-c
transform-origin: center;
tor-l
transform-origin: 0;
tor-r
transform-origin: 100%;
tor-t
transform-origin: top;
tor-tl
transform-origin: 0 0;
tor-tr
transform-origin: 100% 0;

Responsiveness

Use breakpoint prefixes to target different screen sizes. Styles apply from the breakpoint & up.

Target viewport sizes with breakpoint prefixes.

sm:tor-(value)
Small640px
md:tor-(value)
Medium768px
lg:tor-(value)
Large1024px
xxl:tor-(value)
Extra Large1536px

Hover State

Apply styles conditionally on hover using the h: prefix.

Add the h: prefix to apply styles only when the user hovers over the element.

Syntax:h:tor-(value)