Transition Property

Set which properties have a transition effect.

Widely available

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

Chrome
Edge
Firefox
Safari

tp-a
transition-property: all;
tp-bs
transition-property: box-shadow;
tp-c
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
tp-d
transition-property: height, width;
tp-h
transition-property: height;
tp-none
transition-property: none;
tp-o
transition-property: opacity;
tp-t
transition-property: transform;
tp-w
transition-property: width;

Responsiveness

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

Target viewport sizes with breakpoint prefixes.

sm:tp-(value)
Small640px
md:tp-(value)
Medium768px
lg:tp-(value)
Large1024px
xxl:tp-(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:tp-(value)