Capítulo 249 de 411

Chapter 249: InertiaPlugin.getVelocity()

Core Idea

Returns the current velocity of a tracked property on a target — only works if InertiaPlugin.track() was called for that property first.

Reference Tables

ParameterTypeDescription
targetElement | Stringthe element (or selector)
propertyStringproperty name, e.g. "x", "rotation"

Connects To

  • InertiaPlugin.track(): must be called first to enable velocity tracking.