nullifyTransforms

Commons
stable

Returns the bounding rect of an element after undoing its CSS transform (matrix / matrix3d). Used to get the true layout position regardless of applied transforms.

API

Signature

Signature TypeScript complète, extraite du fichier util.

typescript

API

Paramètres

Paramètres d'entrée acceptés par cet util.

el
requis
HTMLElement
The element whose transform-corrected bounding rect is computed.

API

Valeur de retour

La valeur retournée par cet util.

An IBox (top, left, width, height, bottom, right) representing the element's position in the viewport as if no transform had been applied.

Usage

Exemples

Extraits de code prêts à coller.

Get layout position ignoring CSS transforms

typescript