Skip to content
v0.9.1
Guides

Motion

How Momo moves: quick and plain, to show where something came from or that it answered. Two settings tune it, and it turns itself down for people who ask their device for less motion.

The two settings

SettingValueWhat it does
--momo-speed120msHow long small changes take: hover colors, a pressed button, a focus ring
--momo-easecubic-bezier(.2, .7, .3, 1)The curve: fast at first, then settling

Change them once and every small transition follows. Bigger moves have their own, slightly longer times (a dialog arriving, a drawer sliding, a section opening), and use the same curve.

Point at each one.
<div class="cluster" id="mo-demo">
  <button class="btn" type="button">Normal (120ms)</button>
  <button class="btn" type="button" style="--momo-speed: 500ms">Slow (500ms)</button>
  <button class="btn" type="button" style="--momo-speed: 0ms">None (0ms)</button>
  <span class="text-sm text-muted">Point at each one.</span>
</div>
:root { --momo-speed: 200ms; }                 /* everything a little calmer */
.my-toolbar { --momo-speed: 0ms; }             /* this part: no transitions */

What moves, and how

PartMotion
Buttons, fields, links, tabsColors and outlines change over --momo-speed
Dialogs, menus, popoversA short fade and a small move from where they open
Drawers, bottom sheetsSlide in from their edge; the backdrop fades
Collapse, accordionThe height (or the width) opens and closes
ToastsSlide in, pile up, fan out when you point at them
Sortable, filter & sort, kanbanItems glide to their new places. A dragged item gets a shadow and is never tilted
Folder tabsThe box glides to the new panel's height while the panel fades in

Classes for your own parts

All on Borders & effects. The short version:

Less motion

Some people get dizzy or distracted by movement and say so in their device's settings. Momo listens, with nothing for you to do:

In your own CSS, wrap extra movement the same way:

@media (prefers-reduced-motion: no-preference) {
  .my-banner { animation: slide-in .4s var(--momo-ease); }
}

Three habits

  1. Move things to explain, not to decorate: where did this come from, where did that go.
  2. Keep it short. Something a person does fifty times a day should not take 300ms each time.
  3. Never make someone wait for an animation to finish before they can click.

Start

OverviewStart Getting startedStart CustomizeStart

Guides

AccessibilityGuides BreakpointsGuides ChangelogGuides Customize componentsGuides JavaScriptGuides MotionGuides OptimizeGuides PhonesGuides RebootGuides Right-to-left (RTL)Guides Stacking orderGuides Using Momo with AIGuides

Foundations

ColorsFoundations TypographyFoundations ProseFoundations Images & figuresFoundations CodeFoundations Lines & shadowsFoundations Dark modeFoundations

Forms

Checkbox & switchForms ComboboxForms Date pickerForms Date rangeForms Fields & labelsForms File uploadForms Floating labelsForms Number stepperForms PasswordForms PIN codeForms RatingForms SelectForms SliderForms Tag inputForms Time pickerForms ValidationForms

Components

AccordionComponents Alert & bannerComponents AvatarComponents BadgeComponents BreadcrumbComponents ButtonComponents Button groupComponents CalendarComponents CardComponents CarouselComponents ChartsComponents ChipsComponents CollapseComponents Command paletteComponents CommentsComponents Confirm dialogsComponents Cookie bannerComponents Data tableComponents Description listComponents Dialog & toastComponents DividerComponents DrawerComponents Dropdown menuComponents Empty stateComponents File managerComponents Filter & sortComponents Gallery & lightboxComponents Inbox & chatComponents Infinite scrollComponents KanbanComponents Keyboard shortcutsComponents List groupComponents MarqueeComponents Media objectComponents Nav overflowComponents Notification centerComponents PaginationComponents ProgressComponents Pull to refreshComponents SkeletonComponents SortableComponents SpinnerComponents Split viewComponents Stat cardComponents Steps & wizardComponents Swipe actionsComponents TableComponents TabsComponents TimelineComponents TogglerComponents Tooltip & popoverComponents TourComponents Tree viewComponents VideoComponents WhiteboardComponents

Layout

Announcement barLayout App shellLayout Back to topLayout Container & sectionLayout ExamplesLayout FooterLayout HeroLayout JumbotronLayout Mega menuLayout NavbarLayout Site sidebarLayout

Sections

Bento gridSections Blog cardsSections Call to actionSections Contact & newsletterSections FAQSections FeaturesSections Logo cloudSections PricingSections TeamSections TestimonialsSections

Utilities

OverviewUtilities State variantsUtilities Display & flexUtilities Grid & gapUtilities SpacingUtilities SizingUtilities TextUtilities Links & color strengthUtilities Position & overflowUtilities BackgroundsUtilities Borders & effectsUtilities Transforms & filtersUtilities InteractionsUtilities

Helpers

Fixed, sticky & frostedHelpers Hover & focusHelpers Hover revealHelpers Icon linkHelpers PrintHelpers Relative timeHelpers Screen reader textHelpers Scroll inHelpers ScrollspyHelpers Share buttonHelpers Skip linkHelpers StacksHelpers Stretched linkHelpers Theme toggleHelpers Truncated textHelpers

Page patterns

404 pagePage patterns Coming soonPage patterns Login & registerPage patterns SettingsPage patterns ProfilePage patterns CRM contactsPage patterns ProjectsPage patterns File manager pagePage patterns Billing & plansPage patterns Help centerPage patterns Mobile app screensPage patterns
↑ ↓ moveEnter openEsc close