Vibary.ai
← Vibe Coding

Date Picker Open

The calendar unfolds from the field and the days arrive in a wave, today already marked.

formselegantpremiuminteraction · finite · advanced · ~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.

538 lines · react + motion only
import { useEffect, useId, useRef, useState, type KeyboardEvent } from "react";
import { AnimatePresence, motion, useReducedMotion } from "motion/react";

/**
 * Vibary · Date Picker Open
 *
 * The calendar unfolds from under the field and the days arrive in a
 * wave that runs down the weeks, with today already marked and the

About this pattern

Forty small numbers appearing at once is a wall; the same forty arriving in a wave that runs down the weeks and across each one gives the grid a reading order for free, and it costs only opacity and four pixels of travel. Nothing scales, because everything in a calendar is a numeral. The chosen day is a disc that springs in behind its number rather than under it, so the digit never rides the fill. Today keeps a marker of its own after another day is picked, and the grid is a real one: arrows walk it, crossing into the next month when they run off the edge, Page keys change month, Escape hands focus back to the field.

Delivery or booking dateReport range startDue date fieldAppointment scheduling

Where it shows up

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

  • MTWTFSS
    12345678910111213141516
    17
    1819202122232425262728
    Calendar

    A calendar that opens onto the current month with the day already marked.

Related patterns