Breakpoints

Configure responsive breakpoints and per-breakpoint animation control.

Motion.page uses three named breakpoints — phones, tablets, and laptops — to control both the device preview in the builder and which screen sizes each animation runs on.

Global breakpoint values

Location

Settings panel → Breakpoints

Open the Settings panel (gear icon in the top-right toolbar). The Breakpoints section shows three pixel inputs, one for each device tier.

Breakpoints settings — pixel inputs for phones, tablets, and laptops

Defaults

DeviceKeyDefault (max-width)
Phonesphones576 px
Tabletstablets768 px
Laptopslaptops992 px

All values use a max-width media query. A viewport narrower than or equal to the value is considered that device tier or smaller.

Changing pixel values

Click any input and type a new pixel value, or scroll the mouse wheel over the input to increment or decrement by 1. Changes take effect immediately after a short debounce. The builder saves breakpoints as part of the global site options — they apply to all timelines.

Tip: Set breakpoints to match your theme’s grid system (e.g. Bootstrap: 576 / 768 / 992, Tailwind: 640 / 768 / 1024).

Device preview in the Top Panel

The breakpoint pixel values power the device preview buttons in the Top Panel (center toolbar).

Clicking a device icon resizes the iframe to the corresponding pixel value:

ButtonIframe width
Mobile (phone icon)phones.value px
Tablet (tablet icon)tablets.value px
Laptop (laptop icon)laptops.value px
Desktop (monitor icon)Full width

When you update a breakpoint value in Settings, the device preview buttons immediately use the new width. This lets you preview animations at the exact pixel values your theme uses.

Per-animation breakpoint control

Location

Left Panel → Trigger tab → Enabled breakpoints

Each timeline has its own breakpoint range. Open the Trigger tab in the Left Panel and scroll to the Enabled breakpoints section.

How the range slider works

The slider has five positions, each representing a breakpoint tier:

PositionIconMeaning
1Circle-slashNo match (disabled)
2PhonePhones — up to phones.value px
3TabletTablets — phones.value + 1 to tablets.value px
4LaptopLaptops — tablets.value + 1 to laptops.value px
5RepeatDesktop — above laptops.value px

Drag the two handles to select a range of positions. Icons inside the selected range are highlighted to show which device tiers the animation is active on.

Examples

Slider rangeActive on
2 → 5 (all)Every device — phones through desktop
4 → 5Laptop and desktop only
2 → 3Phones and tablets only
2 → 2Phones only
5 → 5Desktop only

The builder generates a matchMedia guard around the animation code. For example, enabling the animation on phones only wraps it as:

js
if (matchMedia("screen and (max-width: 576px)").matches) {
  // animation runs here
}

Enabling on tablets through desktop (positions 3 → 5) produces:

js
if (matchMedia("screen and (min-width: 577px)").matches) {
  // animation runs here
}

The pixel values in these guards come directly from the global breakpoint inputs in Settings.

Workflow — responsive animations

A common pattern is to build different animations for different device tiers:

  1. Create a timeline for your desktop entrance. In Enabled breakpoints, set the range to laptop → desktop (positions 4 → 5).
  2. Duplicate the timeline. Adjust the animation properties for smaller screens. Set the range to phone → tablet (positions 2 → 3).

Both timelines target the same element. The browser applies only the one whose breakpoint range matches the current viewport width.