Walkthrough

Your first animation, in five minutes.

Pick a heading, fade it in when it scrolls into view, save, watch your real visitors see it. No animation theory required for this first round.

What you'll build

A heading on your home page that’s invisible at first, then fades up into place when it scrolls into view. The simplest motion there is, and the one you’ll reuse the most across your site.

Already have Glopzi installed?

Skip step 1 if your editor is already connected. Otherwise, follow the WordPress or custom site quickstart first.

1. Open the editor

On WordPress, click Edit with Glopzi in the admin bar while viewing the page you want to animate. On any other site, add ?glopzi-edit=1to the page’s URL and load it. The editor at studio.glopzi.com opens with your real page loaded inside a frame.

Take a second to look around. Your page is in the middle. The sidebar on the left will list animations as you create them. The toolbar at the top has Save, Preview, and the responsive breakpoint switcher.

2. Pick an element

  1. In the left sidebar, click + Pick element to animate at the bottom.
  2. Move your cursor over the page in the frame. Elements highlight as you hover. Click the heading you want to animate (your hero title, for example).

A modal asks what kind of animation you want: Text, Scroll, or Time. We’ll choose Time in the next step.

Picked the wrong element?

Hold Altwhile hovering to drill into children, or use the arrow keys to walk the page’s structure: for parent, for first child, / for siblings. Press Esc to cancel.

3. Choose a Time animation

Click Time in the modal. Time animations are the right tool when you want a motion that runs once with a fixed duration: page load reveals, hover effects, click flourishes, things scrolling into view.

You’ll see a new entry in the sidebar with the alias of the element you picked, and a configuration panel on the right.

4. Set when it should run

In the configuration panel on the right, find Trigger. The default is In view, which is exactly what we want: the animation starts the moment the element scrolls into the visitor’s viewport. Leave it as is.

Below that, you’ll see Duration (default: 1 second) and Delay (default: 0). The defaults are fine for a first try.

5. Add the motion

The animation panel has a list of properties you can animate. We’ll change two of them so the heading fades and slides in.

  1. Find Opacity in the property list. Click the plus icon next to it to enable it.
  2. You’ll now see two checkpoints: a Start (at 0%) and an End (at 100%). Set Start to 0 and End to 1.
  3. Now find Translate Y. Click plus to enable. Set Start to 30 and End to 0. (Glopzi uses an inverted Y in the UI: positive numbers mean up.)

Why two checkpoints?

Glopzi describes motion declaratively: each checkpoint tells us where the element should be at that moment in time. The Start says "begin invisible and 30 pixels below your final spot", the End says "be fully visible at your normal position". Glopzi interpolates between them. More on this in Declarative keyframes.

6. Preview

Scroll the page in the frame so the heading goes off-screen, then back into view. You should see it fade and rise into place. If something looks off, click the heading in the sidebar to bring up its panel and tweak the values. Every change reflects live in the frame.

You can also click the Preview button in the toolbar to open a clean view of the page (no editor chrome) and interact with it as a visitor would.

7. Save and verify

Click Savein the toolbar. Within a few seconds, the bundle for your site is regenerated and pushed to our CDN. Open your site in a fresh browser tab (or an incognito window so you don’t see cached content) and scroll to the heading. You’ll see the fade-up running for real visitors.

Don't see it on the live site?

Hard refresh the live page (Ctrl+Shift+R on Windows, Cmd+Shift+Ron Mac). The most common reason animations don’t appear right after a save is your browser still holding the previous bundle. CDN propagation takes a few seconds at most.

Where to go next

  • Try a Scrollanimation next. Same picker, same properties, but the motion follows the visitor’s scroll position instead of running on a fixed clock. See Scroll-based animations.
  • Coordinate two or more elements with a single scroll point. See Coordinating multiple elements.
  • Tour every panel of the editor in The editor.