Page Timelines Beta
Keyframe the real elements of your page. A page timeline moves elements of the page you are editing: a row of cards rising in one after another, a card that lifts and tilts while the pointer is over it, a panel that drops in when a heading is clicked. You make it in the Live Editor's Animate workspace: select an element, key its moves on a timeline under the page, pick the curve into each keyframe (springs included), and the page plays it as you work. Save and visitors get it at once.
It is the Animation Creator of the Live Editor. It needs the Animation Engine and Live Editor extensions.
Live demo
→ See it in the Animation Engine demos: an in-view cascade of three cards, a hover that moves two elements, four tiles moved by one class track from the centre out, a section pinned while you scroll, and a click that plays forward, then back.
Make one
-
Open the page in the Live Editor and switch the toolbar from Design to Animate. The page stays in the middle, the timeline docks under it, and a panel on the right shows the timeline's settings.
-
Select an element on the page (or in the Structure list on the left), choose a starting point in Start with (below), and click Animate this element. It gets a track with those moves, ready to change.
-
Add keyframes where you want the element to change. Any of these adds one:
- move the playhead (click or drag on the timeline's ruler) and click ◆ Add a keyframe at … s in the panel, or ◆+ in the timeline's header, or press K;
- double-click the element's row on the timeline, at the moment you want;
- or just change a value in the panel (Move X / Y, Scale, Rotate, Opacity, Blur): it is keyed at the playhead.
A new keyframe starts with the values the element has at that moment, so nothing jumps; then change them. A property keyed for the first time later than 0 s also gets its resting value at 0 s, so it moves from rest.
-
Click a diamond on the timeline to change that keyframe: its time, its values and the curve into it (the shared curve list: Soft land, Pop over and the other springs, Power, Back, Elastic…). Drag a diamond to retime it.
-
Play (or press Space). The element on the page moves with the playhead.
-
With nothing selected, choose what plays it (Plays on) and where (Runs on), then click Save: the page and its timelines are saved together.
Starting points and presets
Start with (above Animate this element) offers ready-made moves: Rise in, Fade in, Slide in from the left / right, Drop in (with a bounce), Pop in (a spring), Blur in, Spin in, and for hover or attention Swing, Pulse and Lift. Each is an ordinary set of keyframes you can then change.

Your own presets: select a track's element and click Save these moves as a preset (give it a name). It joins Start with under Your presets, on every page of the site; a class track's stagger and order are kept with it. Replace its moves with (on a track) swaps a track's keyframes for a starting point or a preset. Import / Export › All (JSON) carries your presets too, so they move to another site with the timelines.
The workspace
The timeline follows the page. Scroll the canvas and, when most of a section is in view (60% of it, or of the screen for a tall one), the timeline that moves that section's elements comes up in the picker, which glows green for a moment. Selecting an element that another timeline moves brings that timeline up too. A timeline you pick by hand stays until you scroll again, and nothing switches while a timeline plays, waits in Preview, or while you drag a keyframe.
The panel on the right shows only what the selection needs:
| Selected | The panel shows |
|---|---|
| Nothing | The timeline's settings (below) |
| An element not in the timeline | Animate this element; for hover, click and in view, Starts the timeline; tracks not on this page to move to it; the other timelines that already move it |
| An element in the timeline | ◆ Add a keyframe at … s, its values at the playhead (a change keys them there), its keyframes, Replace its moves with, Save these moves as a preset, Starts the timeline, Remove from this timeline |
| A keyframe | Its time, its values (empty = not set by this keyframe), the curve into it with a picture, Delete this keyframe |
The toolbar has the timeline picker (+ for a new one), back to the start, Play, the time and Preview, which plays it on the page as a visitor gets it: it shows the first moment and waits for its trigger, so hover the element, click it or scroll it into view. The timeline under the canvas zooms (− / +) and folds away (the arrow).
Keys: Space plays or pauses; K adds a keyframe at the playhead on the selected element's track; Delete removes the selected keyframe (in Animate, Delete never deletes an element); Ctrl+Z / Ctrl+Y undo and redo timeline changes like any other edit.
Every element with a class
One track can move every element with a class: four tiles, all the cards of a grid, each item of a list.
- Give the elements a class: each element's options, Advanced › CSS class (for example
pt-tile). - In Animate, select one of them. The panel offers Animate every “.pt-tile” (4), with how many there are on the page. It adds one track, named Every .pt-tile (4).
- Select any of them to change the track: the values at the playhead are the first element's, and two more settings appear: Stagger (s), how long each element waits after the one before, and Order: First to last (the page order), Last to first, From the centre out or Random (always the same random order, in the editor and for visitors).
On the timeline the track shows one bar for the first element and a faint bar for each of the others, so you see where the last one ends. When a stagger asks for more time than the timeline has, it is lengthened to fit. Add another element with the same class later and it joins in, with nothing to change.
Scroll: the scroll position is the playhead
With Plays on: Scroll, scrolling plays the timeline: down plays it forward, up plays it back.
- Not pinned: it runs while its element crosses the screen, from the moment the element comes in at the bottom until it leaves at the top.
- Pin it: the element (usually a whole section) holds at the top of the screen while the visitor scrolls the distance you set in Pinned for (screen heights), and the timeline runs from start to end over that distance. Then the page carries on. On the editor's canvas the page keeps its own layout (no pinning), so scrub with the playhead; Preview pins it as a visitor sees it.
The Length of a scroll timeline sets the spacing of its keyframes (a keyframe at half the length happens half way through the scroll), not a time.
The timeline's settings
| Setting | What it does |
|---|---|
| Name | For you, in the picker and in exported files |
| Plays on | Page load, In view (when its element scrolls into view), Hover (while the pointer is over its element, or keyboard focus is inside it), Click, or Scroll (the scroll position is the playhead; see above) |
| The element that starts it | Hover, click and in view: by default the first track's element; pick another, or select any element and use Starts the timeline, so hovering one card can move another |
| Play back on leaving | Hover: when the pointer leaves, it plays back to the start (on), or stays where it got to (off) |
| Clicks go forward, then back | Click: each click plays it the other way, like a toggle |
| Every time it comes into view | In view: plays again each time (off: once) |
| Loop / Back and forth | Page load and click: repeat for ever, optionally going back and forth |
| Pin it / Pinned for (screen heights) | Scroll: hold the element in place while the timeline plays, over this many screen heights of scrolling |
| Length (s) | How long the timeline is |
| Runs on | Desktop (992 px and wider), Tablet (768 to 991 px), Phone (narrower than 768 px), the same breakpoints as Interactions. With More Screen Sizes on, Wide (1400 px and wider) is a box of its own and Desktop means 992 to 1399 px. On the others, the elements stay as they are |
| Delete this timeline | Removes it (Undo brings it back) |
Every page of the site
A timeline made only of class tracks (Animate every “.class”) can play on every page: tick Use on every page in its settings (with nothing selected). It then shows · every page in the picker, is stored once for the whole site, and plays wherever elements with its classes appear. Change it on any page; Save stores it for all of them. A timeline with an element track cannot (an element exists on one page only), so the box stays greyed out until every track is a class track. Only people who may change the site's design (Theme Settings) see this option.
What visitors get
- Only pages with a timeline load anything: the runtime is about 4 KB gzipped, with no library. Every other page is untouched (with a site-wide timeline, every page has one).
- No flash: each element's first moment (faded out, moved down) is set in the page's head, so an element that rises in is never seen at rest first. If the runtime is blocked, the elements show normally after 4 seconds.
- No layout shift: motion uses the CSS
translate,rotateandscaleproperties,opacityandfilter. An element keeps its own transform, and nothing around it moves. - Reduced motion: visitors who ask their system for less motion see each timeline's last moment and no motion (unless the engine's Respect reduced motion setting is off).
- Scroll: a pinned timeline holds its element in place with CSS
position: stickyinside a wrapper as tall as the pin; nothing else on the page moves. Reduced motion shows the end state and pins nothing. - Devices: a timeline limited with Runs on plays only there, and starts or stops if the window is resized across a breakpoint.
- In the Live Editor, Design holds timelines still (everything visible, like every other effect), Animate plays them at the playhead, and Preview plays them as a visitor gets them.
Import / Export
With nothing selected in Animate, open Import / Export in the panel:
| Button | Gives you |
|---|---|
| This timeline (JSON) | The timeline you are editing, with every setting. |
| All (JSON) | Every timeline of the page. |
| All (CSV) | A spreadsheet: one row per keyframe, the timeline's settings repeated on each row. Read, sort or edit it in any spreadsheet. |
| Import a file… | A JSON or CSV file from either export. The timelines are added (a timeline whose id is taken gets a new one); the first one opens. |
What you export imports back unchanged. Imported timelines are not saved until you click Save (and Undo takes an import back).
Moving timelines to another page or site. A track points at an element by its builder key, which is different on another page. After an import, such tracks show in orange on the timeline. Select an element on the page: the panel lists them under Not on this page, and Use this element gives that track's moves to it.
The CSV columns: timeline_id, timeline, plays_on, length, started_by, once, leave, toggle, threshold, delay, pin, screens, repeat, yoyo, runs_on, element, element_name, track_curve, stagger, order, t, x, y, scale, rotate, opacity, blur, curve. element and started_by are builder keys (or a class such as .pt-tile), t is seconds, curve is a key from the shared curve list such as soft_land or pop_over (empty: the track's curve, or none).
Good to know
- Move X / Y are a share of the element's own size (Move Y 30 = down 30% of its height), so a move fits the element at every screen size. Blur is 10 pixels a step.
- Where it is stored: on the page (post meta
_upw_page_timelines), beside the builder content, never inside it. So editing the page in the builder, or re-importing it, leaves the timelines alone. Each save replaces the last one: export a copy first to keep a version. - Duplicating an element in the Live Editor gives the copy a new key, so the copy is not in the timeline. Deleting a tracked element leaves its track waiting (it shows under Not on this page next time).
- Two timelines can move the same element; the one that plays last sets where it ends up.
With the AI Assistant (and Claude)
The AI Assistant can make page timelines for you, and so can Claude or any agent connected to the site's AI connection. Its two tools:
| Tool | Does |
|---|---|
page_timelines | Reads a page's timelines, the site-wide ones, your presets and the curve names, with the format |
page_timelines_save | Saves timelines on a page: adds or replaces them by id (or replaces the whole list), and optionally the site-wide ones. Every value is checked; a curve name becomes its CSS. A snapshot is taken first, so Undo in the AI Assistant's Changes (or undo_change) brings the old ones back |
Ask, for example: "Make the three cards on this page rise in one after another when they scroll into view." If the page is open in the Live Editor, reload it to see what the assistant made.
For developers
The runtime is animation-engine/modules/page-timelines/static/js/upw-timeline.js (window.upwTimeline: load,
seek, play, arm, clear), and the server side is page-timelines.php, where upw_page_timelines_get( $post_id ),
upw_page_timelines_save( $post_id, $list ) and upw_page_timelines_clean( $list ) read, store and check the data.
REST API: the timelines are the page's meta._upw_page_timelines field on /wp-json/wp/v2/pages/<id> (and
posts), as a JSON string. Anyone can read it (the same data is printed on the page); writing needs a user who can edit
the page (an application password works), and every write is checked like the Live Editor’s Save: unknown fields are dropped
and values kept in range. An empty string or [] removes them. The Live Editor's own Save sends them the same way.
curl -X POST https://example.com/wp-json/wp/v2/pages/123 -u 'editor:APPLICATION PASSWORD' -H 'Content-Type: application/json' -d '{"meta":{"_upw_page_timelines":"[{\"id\":\"tl-1\",\"name\":\"Intro\",\"duration\":1,\"trigger\":{\"type\":\"load\"},\"tracks\":[{\"target\":\"<item key>\",\"frames\":[{\"t\":0,\"y\":30,\"opacity\":0},{\"t\":0.6,\"y\":0,\"opacity\":1,\"e\":\"cubic-bezier(.22,1,.36,1)\"}]}]}]"}}'
The data shape and the messages between Kinetic Scenes and the Live Editor are on the Live Editor page.