API
RC.15 (Beta): see combined values, native scroll, layout exits and keyed lists for the additions and platform limits.
Available in RC.12: interaction and depth adds portable drop zones, optional audio/cues, adapter inspection and Web path/3D/shadow contracts.
- Web gravity, haptics, sensors, glass and gallery return — available since RC.10.
Web keyboard, sheets, navigation, physics and icons (available since RC.10).
Web support since RC.10: these effects are also available through runtime/scoped methods in /web. These APIs are included in RC.10.
drag / gestures / zoomable / scrollHeader / reorder (Web) — Web gestures, zoom, scroll/refresh and interactive reorder — available since RC.9.
createMotionInspector — optional development inspection, native batches, ownership, binding graphs and reproducible spring tuning.
Animating
- recordInteraction / replayInteraction — optional development traces, controlled-clock replay and native regression probes. Available since beta.18.
- sharedLayout(container, options) — optional same-page shared identities, native snapshots, crossfades and interruption. Available since beta.18.
- sharedNavigationEntry(frame, options) — interactive native image/card return on stable iOS and Android 14+ pages. Available since rc.1.
- resolveListTarget(context, options) — bounded current-cell resolution by stable key for shared return after recycling, scrolling or reordering. Available since rc.1.
- entry.returnToSource(options?) — return a held photo pose through current-cell resolution, carrying translation velocity and viewport clipping into the native flight.
- sharedNavigation(frame, options) — optional native image/card motion across programmatic routes, scoped tags and bounded fallback. Available since rc.1.
- interactiveNavigation(frame, options) — native iOS edge-swipe page transitions with cancellation, velocity-aware spring completion and Core/router history. Available since rc.1.
- predictiveBack(view, values, options) — native Android 14+ system-back progress, spring cancellation and one guarded commit. Available since rc.1.
animate(target, keyframes | preset, transition?)— paths, colors, corners, borders and shadowsinteractionSurface(target)— opt into native touch geometry for an animated subtree.animateLayout(container, change?, options?)— animate the next layout of a container’s direct children.animateSize(view, dimensions, change?, options?)— animate actual width/height/auto with text reflow, pause/resume and scope ownership; performs JS layout per frame.motionScope()— own animation handles, subscriptions and component lifecycle.motionStates(targets, definitions, options?)— coordinated, interruptible named visual states;attach()andref()keep them on views that are recreated, and a transition can set targets apart.motionValue(initial),bind(target, bindings)— one value driving several properties and views;animate(),set()andstop()take a value too.scrollValue(scrollView, { axis? })is a scroll offset as a value.springValue(source, options?)— retained native followers with position/velocity continuity, native chains, numeric mappings and transform/opacity layers. Dispose the subscription with its owning scope.gestures(surface, options?)andGestureSurface— native pan/pinch/rotation, tap relationships and core ScrollView handoff, from the optional@rafaelaugusto/jolt/gesturesentry point.bottomSheet(panel, options)— optional in-page sheet with native scroll handoff, dynamic snaps, keyboard following and accessible actions.reorder(list, options)— optional flat Core ListView reordering with stable keys, variable heights, native edge scrolling and keyboard/accessibility moves.value.subscribe(listener, { immediate? })— observe numbers, derived colors and scroll values in JavaScript; returns unsubscribe.animate(value, target, { layer }),stop(value, { layer })— additive scalar layers before mappings.animate(target, { y }, { type: 'gravity' })— ballistic fall and bounce to one fixed landing.decay(target, velocity, options?)gradient(target, options)— native linear, radial and conic gradients with mixed static/motion-value components (GradientBindings); returns aGradientwithbind(),animate(),set(),stop(),suspend(),resume(),suspendedandremove().motionScope().gradient()andv-gradientown it for a scope or a template.stop(target, properties?)set(target, values)— applies values at once and stops what animates them.playbackProgress(animation)— read-only, observable progress on an existing animation’s clock.timeline(steps)— pause and resume active and pending steps together.seekableTimeline(steps, { paused? })— finite native scene seeking for explicit view/value tracks.@rafaelaugusto/jolt/native— optional property registry, native maps and SceneKit cameras, lights and materials, and camera FOV.sequence(steps)— overlapping steps and fixed positions.press(target, pressed?, transition?)drag(target, options?)— withvalue, the gesture drives a motion value instead of the view.physicsWorld(container, bodies, options)— native circle collisions, drag/release and lifecycle ownership.motionBehaviors(),gradientText(),withTimelineCues(),/rig/rig2d()— Native scenes and retained resources.shape()— native SVG stroke drawing and matching-path morphing.blur()— animate an owned native blur amount.GlassContainer/GlassView— native iOS 26 Liquid Glass fusion using existing transform playback.world.attach()/world.snapTo()— native anchor springs and release snap points.world.spring(id, options | null)— elastic links between circle centers.sensor(kind, options)— optional native rotation/gravity sources for motion values, bindings and springs.scrollHeader(list, options)— native Core ListView composition: measured hero, parallax, title handoff, pinned section and stable item anchors. Optional native pull-to-refresh usesonRefreshandScrollHeaderSurface.scrollLinked(scrollView, target, keyframes, { range, axis? })— returns a cleanup function.animateItems(list, keyframes | preset, options?)— rows as they appear, withonce; returns a cleanup function.followKeyboard(target, options?)— moves a view with the keyboard on iOS and Android 7+; returns a cleanup function.onKeyboard(callback)— how much of the window the keyboard covers, with its timing; returns a cleanup function.symbolEffect(image, effect, options?)— iOS SF Symbols.shimmer(target, options?)— iOS loading placeholders; returns a cleanup function.liquid(image, options?)— iOS texture deformation; returns aLiquidEffectwithpause(),resume()andstop().imageEffect(image, name, options?)— native ripple, touch distortion and deterministic dissolve; playback controls and explicit compatibility fallback.zoomable(image, options?)— native photo pinch, double-tap zoom, bounded pan and optional dismissal intents.loader(target, options?)— iOS dots, bars and ring indicators; returns a cleanup function.reveal(target, options?),conceal(target, options?)— iOS circular visibility transitions; return anAnimation.animateText(label, options?)— letter-by-letter or word-by-word entrances on iOS and Android; returns anAnimation.animateText(label, options?)— iOS letter-by-letter or word-by-word entrances; returns anAnimation.rollTo(label, value, options?)— rolling digits on iOS and Android; returns anAnimation.confetti(target, options?),particles(target, options?)— native iOS/Android particle effects; return cleanup functions. No JS simulation or paint callback per frame; Android drawing shares the UI thread.
target is a view or anything holding one (a template ref on an element or a component, an ElementRef). animate(), decay(), stop(), set() and sequence steps also accept arrays of targets.
animate() options also accept haptic: light, medium, heavy, { style, times }, or false. Feedback supports iOS and Android, respecting device settings.
Animations
What animate(), decay(), sequence() and the steps of a sequence return: await it, read finished, or call stop(). It resolves with true when it played to the end and false when it was stopped or taken over, and cancellation never rejects. Sequence setup/callback errors can reject finished after canceling its other work.
animate() and decay() return PlaybackAnimation: the base lifecycle plus pause(), play(), writable progress, and readonly paused/duration. Sequence and effect handles keep the base Animation contract.
Transitions
- Springs:
'smooth' | 'snappy' | 'bouncy',{ bounce, duration, velocity }or{ stiffness, damping, mass, velocity }. - Tweens:
{ duration, ease, times, easeTrack }. - Timing:
delay,repeat,repeatType: 'loop' | 'reverse',repeatDelay,stagger: number | { each, from }. - Layers:
layer: 'name'plays on top of the property's other animations;stop(target, properties, { layer })stops one layer. - Per property: any property name mapped to its own transition.
- Relative keyframes:
{ relative: true }adds translation/rotation offsets and multiplies scale/opacity by their starting values.
Helpers
definePreset(name, preset), presets, springs, origamiSpring({ friction, tension }), cubicBezier, toView(target). toView() returns the NativeScript view behind any accepted target, for helpers that take the same targets as animate(). See custom presets for registration and typed names.
Vue
@rafaelaugusto/jolt/vue is a separate entry point for NativeScript-Vue 3: vAnimate (v-animate), vPress (v-press), JoltTransition, transitionHooks(props), useMotionScope(), useReducedMotion(), useKeyboard(), useMotionValue(), useBinding(), useScrollValue() and install(app), also the default export for app.use(). Types: AnimateValue, PressValue, TransitionProps. See the Vue guide.
Types
Step, SequenceOptions, SequencePosition, JoltConfig, KeyframeProperty, ScrollLinkedOptions, KeyboardOptions, ItemsOptions, ColorValue, ColorKeyframes, Keyframes, Transition, Spring, Tween, Preset, Presets, PresetName, SpringName, Easing, Animation, Target, DecayVelocity, DecayOptions, SymbolEffect, SymbolEffectName, SymbolEffectOptions, ShimmerOptions, LiquidOptions, LiquidEffect, LoaderOptions, LoaderStyle, TextOptions, RollOptions, RevealOptions, ConcealOptions, Haptic, HapticOptions, HapticStyle, ConfettiOptions, ParticleOptions and the rest exported from the package. configure({ timeScale }) sets global playback speed for animations started afterwards. configure({ timeScale, reducedMotion }) sets the global playback speed and the reduced-motion preference ('user', 'always' or 'never') for animations started afterwards. reducedMotion() and onReducedMotion(callback) read and watch that preference.
Types
- SceneKit environment and shader inputs — native illumination and typed scalar/vector uniforms.
Portable foundations (RC.12 work)
Portable foundations (RC.12 work): Pointer presence, coordinated property groups, renderer activity, bounded drawings and native press/shape fixes.