Table of Contents

Enum TransitionType

Namespace
Velvet
Assembly
Velvet.Docs.dll

Selects the animation model a StyleTransitionConfig plays with — see Type.

public enum TransitionType

Fields

Spring = 1

A physics-integrated spring (see the internal SpringIntegrator): Stiffness / Damping / Mass decide the curve and settle time instead of a fixed duration — CSS/USS transitions cannot express a spring, so this is driven by a per-frame tick that writes inline styles directly (like the drop-shadow co-fade tick), not transition-duration/transition-timing-function. Only MotionNode's variant enter/exit (variants + initial/animate/ exit) plays a spring — the classic preset transitions (StyleTransition) are always tweens, since their enter/exit classes are internal to the package. Only OPACITY and the transform trio — translate x/y (pixels only; percentage-based translate such as translate-x-1/2 or translate-x-full is out of scope), uniform scale, and rotate (degrees) — are spring-animated; colors, arbitrary lengths (width/height/margin/…), and per-axis scale-x-/scale-y- are out of scope and are NOT animated by a spring (they still apply as plain classes, just without a tween/spring transition on them).

Tween = 0

A USS transition-* class swap: DurationSec / Easing drive a fixed-duration tween between the from/to classes. The default.