SearchCtrlK

  • ↑↓navigate
  • ↵open
  • escclose

Can’t find it? Contact us

On this page

easings

Named transition-timing-function curves shared by every animation factory, component.

tsx
import { easings } from "@sdxc/ui/animations";

Signature

typescript
const easings = {
	/** The general-purpose curve for enter/exit transitions: gentle acceleration, gentle deceleration. */
	standard: "cubic-bezier(0.4, 0, 0.2, 1)",
	/** Starts fast and settles slowly; reads as an element arriving into place. Suits entrances. */
	decelerate: "cubic-bezier(0, 0, 0.2, 1)",
	/** Starts slowly and leaves quickly; reads as an element departing the screen. Suits exits. */
	accelerate: "cubic-bezier(0.4, 0, 1, 1)",
	/** Constant rate from start to end; matches the platform's own `linear` keyword. */
	linear: "linear",
} as const

Examples

tsx
fade({ easing: easings.decelerate });
tsx
transitionTimingFunction: easings.standard,
@sdxc/ui

Can’t find it? Contact us