Vibary.ai
← Vibe Coding

Model Switch Morph

Choosing another model glides the selection across and eases the badge into that model's name and accent.

aipremiumelegantinteraction · finite · intermediate · ~0.4s
Interactive · click to play
Variant

The animated component in this preview is rendered from the canonical file shown here. The surrounding demo shell only provides context and is not part of the copied code.

301 lines · react + motion only
import { useId, useState } from "react";
import { motion, useReducedMotion } from "motion/react";

/**
 * Vibary · Model Switch Morph
 *
 * Picking a different model slides one selection pill between segments
 * while the badge underneath cross-fades its name and eases to the new

About this pattern

Choosing which model answers is a small setting with a large consequence, so the control should feel considered rather than clicked. A single selection pill travels between segments — the same element moving, not two fading — while the badge below cross-fades its name and its accent tweens to the colour the new option owns. Nothing scales: a label that pops on every switch turns a settings control into a toy, and this one is touched dozens of times a day.

Model pickerQuality or speed settingAssistant persona switchReasoning effort control

Where it shows up

Screens we drew to show where this motion usually sits. Illustrations, not captures of any product.

  • Summarise the supplier contract and flag anything unusual.
    The renewal runs another twelve months at the same rate, with one clause worth a second look.
    Supplier contract.docxQ3 planning notes
    Ask a follow-up
    AI assistant

    A model chooser beside the composer where the current choice is named and coloured.

Related patterns