Changelog

Releases across Motion, Motion UI, Motion AI Kit, and Motion Studio.

  1. Motion UIpatch5.1.1

    Fixed

    • splitText: Fix gradient text (background-clip: text) clipping text beyond a character's bounding box.
  2. Motion UIminor5.1.0

    Added

    • splitText: Keep inline markup (links, <em>, <br>, images).
    • splitText: revert() puts the original nodes back.
    • splitText: Lines are read from the unsplit layout, so they match the browser's own breaks, including text-wrap: balance and pretty, mixed fonts, hyphenation and soft hyphens (with chars still split), right-to-left text and vertical writing modes.
    • splitText: Gradient text made with background-clip: text stays visible and continuous when chars are animated.
    • splitText: Optional callback, splitText(element, callback, options). Called whenever re-splitting. Automatically scoped with scopeMotion.
    • splitText: International words correctly split with Intl.Segmenter, as these scripts have no spaces.
    • splitText: Chars keep their kerning, including kerning between a space and the letter after it.
    • useSplitText: useSplitText(ref, callback, options) splits the element after fonts load, shows it, splits again on resize and reverts on unmount.

    Changed

    • splitText: Lines are display: block with white-space: nowrap. Words and chars no longer set vertical-align: top.
    • splitText: The container no longer gets an aria-label. Screen readers read each word split into chars from a visually hidden copy, drawn with CSS generated content so it isn't copied with the text or included in textContent. A small <style data-split-label> is added once per document or shadow root.
    • splitText and scrambleText: Split by grapheme cluster with Intl.Segmenter, so emoji sequences, flags and combining marks stay whole.

    Fixed

    • FX: Fix elements with fx attribute ignoring ancestors translate, rotate or scale.
    • splitText: Fix justified text losing its justification.
    • splitText: Fix text-indent indenting every word.
  3. Motion UImajor5.0.0

    Added

    • FX: New FX component and <motion-fx> element. Draws live HTML in a WebGPU canvas with HTML-in-canvas, with motionBlur, fog and lensBlur effects.

    Changed

    • Requires motion 14.14.0 or later.
    • FX is covered by the Motion+ Licence in LICENSE-MOTION-PLUS.md. All other APIs remain MIT.
    • Gallery: sphere turns freely in every direction, over its poles and round again, with no tilt limit.

    Removed

    • Gallery: Removed shaders in favour of FX.
  4. Motionminor14.14.0

    Added

    • Internal exports for use inside Motion UI.

    Fixed

    • LazyMotion: Fix async hydration blink.
  5. Motionminor14.13.0

    Added

    • layout: Animated layers now preserve spring velocity.
    • layout: mass: "auto" setting for size-relative spring mass.

    Fixed

    • pinch: drag initiated during snap animation no longer breaks animation.
  6. Motionminor14.12.0

    Added

    • spring: visualDuration/bounce respects velocity.
  7. Motionpatch14.11.1

    Changed

    • pinch: Snap points use velocity-based prediction to calculate rotation snap point.
    • pinch: Configure transform origin between element-relative origin and pointer center.
  8. Motionminor14.11.0

    Added

    • pinch: Multitouch pinch and rotate gestures.
  9. Motionpatch14.10.1

    Fixed

    • animate: Fix not recognising timeline of only nested sequences as timeline.
    • Various performance-related improvements.
  10. Motionminor14.10.0

    Added

    • press: count, hold and repeat, for double/triple press, long press and multipress gestures.
    • drag: Expose getProps on the dragConstraints function context.
    • drag: x/y props for headless gesture tracking.
    • Reorder: Home and End buttons move selected item to beginning and end of list, respectively.
    • motion: New tap prop for configuring press gesture.

    Fixed

    • animate: Minor fixes.
  11. Motionpatch14.9.1

    Added

    • Ensure accelerated transform animations finish correctly.
    • AnimatePresence: Fix exit never starting when a child mounts already exiting.
    • AnimatePresence: Fix exit stuck after an open layoutId card switches to another item.
    • Ensure accelerated animations are cleaned up in WebKit.
  12. Motionminor14.9.0

    Added

    • PresenceContext: Added internal keepValuesOnRemount option for internal use.
    • dragConstraints: Accepts function for internal use.
    • Reorder: Keyboard accessibility now focuses just the first item, arrows move focus, arrow keys work in relation to how items are presented on-screen.
  13. Motion UIminor4.4.0

    Added

    • AnimateSuspense: Animate fallback out when replaced with content.

    Changed

    • Requires motion 14.9.0 or later.

    Fixed

    • AnimateNumber: Fix digits disappearing when a fixed-trend roll is interrupted.
    • Gallery: Fix velocity-driven modifiers like tilt() jolting when switching arrange.
    • Gallery: Fix shader detail pages flickering as they turn.
  14. Motionminor14.8.0

    Added

    • transition: Added mixer option for passing custom mixer functions.

    Fixed

    • Only counts projection stats while recordStats() is running.
    • Fix accelerated animations stuck at initial after remount.
    • drag: 20% smaller.
    • m component: 6% smaller.
    • Keep timeline adjustments within timeline scope.
    • Reorder
  15. Motionpatch14.7.1

    Fixed

    • Demote transforms to CPU when interrupted by layout animations.
  16. Motionminor14.7.0

    Added

    • animate: Mutable timeline sequences.
    • animate: Relative label offsets for timeline sequences.
    • useScroll: Returns scrollXLength and scrollYLength.
    • Reorder: Add LazyMotion-compatible import.
    • motion: transition.out prop for transitions when exiting a state.

    Fixed

    • Fix one flash when changing playback speed of accelerated independent transform.
    • AnimatePresence: Improved positioning of popped elements.
    • spring: Fix overdamped springs snapping to target.
    • drag: Ref-constraints kept up-to-date after scroll.
    • motion: Animate layoutId elements relative to layoutRoot container.
    • motion: Bundle size reductions.
    • Moving background-color animations back to main thread for improved interpolation.
    • drag: Fix drag inertia stopping dead after a fast flick from a standstill.
    • layout: layoutId elements now animate relative to their closest layoutRoot ancestor, if any.
    • layout: layoutId may be changed after mount.
    • useScroll: Fix tracking in horizontal containers.
    • useSpring: Reduced bundle size by 30%.
  17. Motion UIminor4.3.0

    Added

    • Gallery: Added depthOfField shader.v

    Fixed

    • Gallery: Trackpad momentum moves the gallery 1:1 instead of standing still and then jumping.

    Changed

    • Gallery: Size animations run on transforms, and gestures repaint less.
    • AnimateNumber: Measurements are batched with the frameloop.
  18. Motionminor14.6.0

    Added

    • Reorder: Grab-and-move keyboard reordering.
    • processFrame: Manually process the frameloop at t.
    • stepFrames: For tests, synchronously advance frameloop time by duration.

    Fixed

    • Improved tree-shaking.
    • motion: Fix layoutId elements jumping in some situations.
    • Reorder: Make auto-scroll speed independent of refresh rate.
    • drag: Fix animations when disabling drag from within onDrag.
    • Fix shared layout animations applying an element's own scale/x/y twice.
    • Fix replaying mount animation when an element takes over a layoutId.
    • motion: Fix updating SVG styles.
    • useTransform: Improving value resolution.
  19. Motionminor14.5.0

    Added

    • scopeMotion/useScopeMotion: Scope animations and gestures to set default transitions, specify root elements, match media, and easy cleanup.
    • Reorder: Pass moved to onReorder as second argument.

    Fixed

    • drag: With direction lock, apply the move that sets the lock. Before, a fast drag released in that frame didn't move.
    • press: Improve cleanup of keyboard accessibility events.
    • Reorder: Stop double-counting window scroll during drag.
    • motion: Ensure we animate from the latest props when parent Activity is made visible.
    • useInView: Observe ref if contents change after mount.
  20. Motion Studiominor2.2.0

    Added

    • Reduced motion mode.
  21. Motionminor14.4.0

    Added

    • drag: Drag gesture added to JavaScript API.
  22. Motionpatch14.3.1

    Fixed

    • AnimatePresence: Fire onExitComplete after exiting children unmount.
    • AnimatePresence: popLayout children that don't accept ref are now popped when root component is <motion> element.
    • Fix interpolation of axis rotate and skew transforms during shared layout animation.
    • Fix layout animations when layout is enabled after mount.
    • Fix drag jumping to 0 after animate x/y to CSS variable.
    • arc: Fix path animations with animate.
    • Ensure shared elements are freed from memory when unmounted.
    • Fix accelerated independent transform animations vanishing when they start from a float residue.
  23. Motion UIminor4.2.0

    Added

    • typewriter: Added vanilla typewriter function.

    Fixed

    • Gallery: Fix issues with sphere and touchpad wheel events.
    • AnimateNumber: Fix accessible text (aria-label on role-less span).
  24. Motionminor14.3.0

    Added

    • stagger: New grid, from: "edges" | "random" options.
    • Support for scaleZ.

    Fixed

    • Fix matrix3d and other digit-named transform functions being tokenised as numbers.
    • useSpring: Ensure when switching targets we animate to the new target on switch.
    • Fix SVG MotionValue children being written as a children attribute.
  25. Motionminor14.2.0

    Added

    • Hardware accelerated independent transforms like x, y, scaleX etc.
  26. Motionpatch14.1.1

    Fixed

    • Fix velocity hand-off for hardware-accelerated springs.
    • cubicBezier: More accurate, 2x faster.
    • Reorder: Fix click events on reoredered items.
    • useTransform: Fix desync when source is set in an effect under Strict Mode.
  27. Motion UIminor4.1.0

    Added

    • Gallery: Switching to grid, its cells fade in outward from the centre on the transition's delay, like transition={{ arrange: { delay: stagger(0.05) } }}.
    • Gallery: The detail strip's stagger takes stagger()'s from, so transition={{ close: { delay: stagger(0.04, { from: "last" }) } }} closes it from the outside in.

    Changed

    • Gallery: Opening detail fades the whole strip in as one staggered wave, both sides of the open item together.
    • Gallery: An item that changes places without flying there moves with its neighbours as it fades.

    Fixed

    • Gallery: Items gather behind the active one again when switching to grid.
    • Gallery: New options of the same arrangement, like a ring's rotateX, blend its camera as one piece again.
    • Gallery: Switching away from grid after paging no longer flies the previously active item off alone, or others in from where they were last drawn.
    • Gallery: Closing detail just after a change no longer flies the previously open item out of the strip.
  28. Motion UIpatch4.0.2

    Fixed

    • Gallery: Closing detail fades the whole strip out together. Thumbnails with no place in view to return to no longer linger.
    • Gallery: Paging on straight after switching to grid no longer hides the item paged to.
    • Gallery: Switching away from grid no longer resizes its items to the next arrangement's item size as they fade out.
  29. Motion UIpatch4.0.1

    Added

    • Gallery: rearrange option and shift() preset set the state an item fades in from when it changes places without flying there.
    • Gallery: rearrangeFrom option sets where the stagger starts as the detail strip opens or closes.
    • Gallery: gather option. Items collapse behind the active one when switching to grid.

    Fixed

    • Gallery: Items no longer fly across the view when loop or arrange changes. They fade out and in on the side they belong.
    • Gallery: Opening and closing detail fades the other items between the arrangement and the strip.
    • Gallery: The camera no longer swings between arrangements, so items entering the new one fade in where they belong.
  30. Motionminor14.1.0

    Added

    • animateLayout: Layout animations for vanilla JS.

    Fixed

    • Delay animation start when main thread held to prevent visual jumps.
    • Fix whileHover/whileTap getting stuck after Fast Refresh reorders siblings.
    • scroll/useScroll: Fix reporting of elastic overscroll.
    • AnimatePresence: Fix popLayout when rendering into another window or iframe.
    • animate: Fix JS animations jumping ahead when played after a pause at non-1 speed.
    • Allow layout animations inside dragged elements.