rippleTransform

Commons
stable

Apply a CSS transform string to a ripple-enabled element, setting both the standard and WebKit-prefixed properties simultaneously.

API

Signature

Full TypeScript signature sourced from the util file.

typescript

API

Parameters

Input parameters accepted by this util.

el
required
IRippleHtmlElement
The DOM element that hosts the ripple. It must carry the _ripple metadata object.
value
required
string
The full CSS transform string to apply, e.g. "scale(2) translate(0, 0)".

API

Return value

The value returned by this util.

No return value. Mutates el.style.transform and el.style.webkitTransform.

Usage

Examples

Ready-to-paste usage snippets.

Scale a ripple element

typescript