Skip to main content
Animations decide how the layers of a visual move when it goes on air and comes off air. Each animation is a bar on the animations timeline, grouped by layer. The timeline writes the animations as GSAP code in the visual’s JS, and supported hand-written code shows on the timeline too.

Open the animations timeline

Click the Animations button, the wand icon in the header of the Visual Designer, or press A. The canvas shows Animation mode and the timeline opens below it. Click Done to close it. The timeline has one row per layer. A layer can animate on four triggers:
  • In - When the visual goes on air.
  • Out - When the visual comes off air.
  • Item in and Item out - When an item of a playlist layer appears or goes. In Sublayers mode each sublayer is an item. In Data selector mode the playlist’s layers are one item, shown once per data entry: the entry goes with Item out, then the next one comes in with Item in.

Add an animation to a layer

1

Select a layer

Select the layer on the canvas or in the layers panel.
2

Choose a trigger

Choose In or Out on the timeline.
3

Pick a preset

Click Add to In, or Add to Out, in the Animations panel and pick a preset.
The presets are Fade, Scale, Slide and Wipe, each in and out, and slide and wipe in four directions. You can also drag across an empty part of a layer’s row on the timeline to draw a fade.

Animate all layers at once

Click Animate all layers in the Animations panel and pick a pair, like Slide up or Fade. Every top-level layer gets an In and an Out animation, except Bodymovin layers and layers with code-only animations. The In animations start 0.1 s after each other, the Out animations run in reverse order. When the visual already has animations, VRA asks before it replaces them. Undo brings them back.

Animation settings

Select an animation to change it under Animation settings. An animation shows Edited in code when its code uses something the panel can’t change. Click Edit code to change it in the JS.

Arrange timing on the animations timeline

Drag a bar to move its start, for example to delay a layer. Drag an edge to change its duration. Bars snap to 0.01 s and to the edges of other bars, hold Alt to turn snapping off.
  • Drag a bar onto another row to move it to that layer. Hold Cmd or Ctrl to copy it instead.
  • The left and right arrow keys move the selected bar 0.01 s, with Shift 0.1 s.
  • Cmd or Ctrl + D duplicates it, Delete removes it.
  • Right-click a bar for Edit in code, Duplicate and Delete.
The length marker, like In ends 1.20 s, shows when the trigger ends. Drag it, or click the length in the time readout, like 0.00 / 1.20 s, to set a Length. With animations on the trigger, a new length stretches or shrinks them all.

Preview animations

Click play on the timeline, or press Space, to play or pause the preview. Play from the start restarts it from 0, Loop preview repeats it. The speed menu plays it at 0.25×, 0.5×, 1× or 2×. Loop and speed only change the preview. Drag the playhead on the ruler to look at one moment. K pauses and L plays. With no bar selected, the left and right arrows step one frame, 1/25 s.

Start animations from your own code

Click New trigger to animate on a custom event, like a score update. Give it a name and add animations to it as usual. The panel shows the line to start it from your JavaScript, like visualLink.animations.emit("score-updated"), and Test trigger to try it. See Animation custom events.

Hand-written animation code on the timeline

The timeline reads GSAP timelines and gsap.to, gsap.from and gsap.fromTo calls in the visual’s lifecycle handlers. Code it can read but not change safely shows with a Code only badge. Other code stays in the JS and keeps working, but does not show on the timeline. When the JavaScript has an error, the timeline shows Fix the JavaScript to edit animations with the line number. The last animations stay visible but can’t be edited until you fix the line. See the GSAP guide for writing your own.

Move old animations to the timeline

A visual made before the animations timeline uses old animations: fades and transitions set per layer. It still plays on air as before, but you can only edit its animations after moving them to the timeline. The Visual Designer shows an Old animations button in its header for such a visual.
1

Open Old animations

Click Old animations in the header of the Visual Designer. The animations timeline opens, and the side panel shows Old animations.
2

Move the animations

Click Move to timeline under Old animations. The fades become In and Out animations on the timeline, and the fades of playlist items become Item in and Item out. The visual looks the same on air, with one difference: the entries of a playlist in Data selector mode switch one after the other, the old entry goes before the next one comes in. A Visual layer moves as a fade on its box. The visual inside it keeps its own animations.
3

Save

Save the visual to update it on air.

What stops old animations moving to the timeline

When something in a visual can’t move to the animations timeline, the Old animations panel lists it under What stops the move and hides Move to timeline. Each row names a layer, a line of the visual’s CSS or a line of its JS, and shows one of the messages below. The row’s title is the layer name or the line, like Custom CSS, line 14. Click a row to open that layer’s settings, which closes the timeline, or that line in the code editor. Ask Vera sends the rows to Vera, which answers with the steps for this visual. Some rows have a fix: do it, and once no row is left, Move to timeline appears. Other rows can’t be fixed in the Visual Designer. The visual keeps working on air with its old animations, and you can’t change those animations in the Visual Designer. To open the JS or the CSS of a visual, click Code editor in the header of the Visual Designer and choose the JS or CSS tab, see Designer controls.

Custom JS: Has an error. Fix this line.

The visual’s JS has an error on the line in the row, so the timeline can’t tell which animations it contains.
  1. Click the row. The code editor opens the JS tab on that line.
  2. Fix the line, then save the visual.
  3. Click Move to timeline once no row is left.

Custom JS: Uses old layer events

The visual’s JS animates layers when a layer sends the old layer-activated or layer-hidden event. The timeline replaces those events with its own In and Out triggers, so this code would stop working after the move.
  1. Click the row. The code editor opens the JS tab on that line.
  2. Note what the code does, like which layer it fades or slides, then remove the listener and its code.
  3. Click Move to timeline once no row is left.
  4. Add the same movement on the timeline, see Add an animation to a layer.
  5. Save the visual.

Custom JS: Runs its own gsap animation

The visual’s JS calls gsap.to, gsap.from or gsap.fromTo directly in a lifecycle handler, like playStateManager.on("enter", ...). The timeline only moves animations that are part of a GSAP timeline, so this call would run next to the moved animations.
  1. Click the row. The code editor opens the JS tab on that line.
  2. Note what the call does, then remove it.
  3. Click Move to timeline once no row is left.
  4. Add the same movement on the timeline, see Add an animation to a layer.
  5. Save the visual.

Custom CSS: Animates with CSS

A rule in the visual’s CSS animates a layer. The rule uses @keyframes, animation, or one of the layer state classes .layer-visible, .layer-hidden, .layer-transition-in, .layer-transition-out, .layer-transitioning, .layer-in-transition and .layer-out-transition. The timeline can’t take over CSS animations.
  1. Click the row. The code editor opens the CSS tab on that rule. When the CSS has a rule the Visual Designer can’t read, like one without its closing }, the row opens the top of the CSS: find the rule with an animation and fix or remove it.
  2. Note what the rule does, then remove it.
  3. Click Move to timeline once no row is left.
  4. Add the same movement on the timeline, see Add an animation to a layer.
  5. Save the visual.
Playlist item rules are the exception. Rules on the items of a playlist layer move to the timeline as Item in and Item out animations by themselves when they only set opacity, translateX, translateY or scale with one transition. Such rules don’t show as a row.

Playlist layer: Has no Mode set

The playlist layer has no Mode, so the Visual Designer can’t tell what its items are. Select the playlist layer, set Mode to Sublayers or Data selector, see Playlist, then click Move to timeline.

Iterator layer: Iterators can’t move

The Iterator layer repeats its layers for each item of a data list, and the timeline can’t animate those items. Leave the visual as it is. It keeps working on air, but you can’t change its animations in the Visual Designer.

Image slideshow layer: Slideshows can’t move

The Image slideshow layer switches its images on its own timer, and the timeline can’t animate the slides. Leave the visual as it is. It keeps working on air, but you can’t change its animations in the Visual Designer.

Visual layer: Nested visuals in a playlist can’t move

The Visual layer sits in an item of a playlist layer, and the nested visual would fade on top of the item’s own animation. Leave the visual as it is. It keeps working on air, but you can’t change its animations in the Visual Designer.

Any layer: Custom handler is on, which can’t move

The layer’s transition has Custom handler turned on, so code in the visual’s JS shows and hides the layer instead of a fade. The Visual Designer has no setting to turn Custom handler off. Leave the visual as it is. It keeps working on air, but you can’t change its animations in the Visual Designer.

Bodymovin layer: Old Bodymovin markers can’t move

The Bodymovin layer plays its In and Out markers on the old layer events. Leave the visual as it is. It keeps working on air, but you can’t change its animations in the Visual Designer.

Visuals that run on their own code

Some visuals are run by their JS rather than by their layers. The code animates the layers itself, and it also does work of its own: it fetches data from another site, like cover art, runs on a timer, writes text into layers or saves data in the browser. That code is the visual, so it can’t move to the animations timeline, and removing it would break the visual. The Visual Designer recognizes these visuals. The header shows Custom code instead of Old animations, the timeline shows the layers without bars, and the Custom code panel lists what the code does under What the code does. Click a row to open that line in the JS tab of the code editor. Ask Vera sends the rows to Vera. The visual keeps working on air. To change how it animates, edit its JS, see Designer controls. To use the animations timeline, build the animation again in a new visual.

Animate a Bodymovin layer on the timeline

A Bodymovin layer shows one bar per trigger. Drag it to start the In or the Out later. The markers in the Bodymovin file set its length. See Bodymovin / Lottie animation layer.

Video playback

The timeline decides when a video layer plays. Select the video layer and choose Play video to start it at the playhead. The bar in the video’s lane runs from the play to the pause. Drag its right edge to pause the video there, or choose Keep playing to let it run while the visual is on air. Jump to moves the video to a point before it plays or pauses. Set Count from to End to count back from the end of the video: an Out that plays a looping video’s last 5 seconds runs its outro once, however long the video looped. To keep a video hidden until the Out, give it a fade in the Out and play it there. A video the timeline plays ignores its own autoplay. Scrubbing and pausing the preview moves the video with it.