NativeScript 9.1 Released → V8 14.9, Vite 8 HMR, built for rapid agentic visual iteration
Dig in

Defined in: ui/frame/index.d.ts:430

Represents an object specifying a page navigation transition.

Properties ​

curve? ​

ts
optional curve?: any;

Defined in: ui/frame/index.d.ts:463

An optional transition animation curve. Possible values are contained in the AnimationCurve enumeration. Alternatively, you can pass an instance of type UIViewAnimationCurve for iOS or android.animation.TimeInterpolator for Android.


duration? ​

ts
optional duration?: number;

Defined in: ui/frame/index.d.ts:457

The length of the transition in milliseconds. If you do not specify this, the default platform transition duration will be used.


instance? ​

ts
optional instance?: Transition;

Defined in: ui/frame/index.d.ts:452

An user-defined instance of the "ui/transition".Transition class.


name? ​

ts
optional name?: string;

Defined in: ui/frame/index.d.ts:447

Can be one of the built-in transitions:

  • curl (same as curlUp) (iOS only)
  • curlUp (iOS only)
  • curlDown (iOS only)
  • explode (Android Lollipop(21) and up only)
  • fade
  • flip (same as flipRight)
  • flipRight
  • flipLeft
  • slide (same as slideLeft)
  • slideLeft
  • slideRight
  • slideTop
  • slideBottom