6 min read

Site Builder: Interactions and Anchor IDs

Add entrance animations, hover effects, parallax, click toggles and smooth scroll-to-section links to elements in the site builder, and give elements anchor ids to link to.

The site builder lets you add motion to any element without writing code: fade a heading in as it scrolls into view, lift a card on hover, or make a button scroll smoothly to another part of the page. Each effect is an interaction attached to one element. Pair interactions with an Anchor id to build one-page navigation.

Interactions and anchor ids are available when you design a website (the web canvas). They are not offered for email or invoice templates, which cannot run scripts.

Open the builder

  1. Go to Hosting and open Hosted Apps.
  2. Open your site.
  3. Click Edit in Builder.

Add an interaction

Select an element

Click any element on the canvas (a heading, image, button, container and so on).

Open the Motion tab

Interactions live in the Pro inspector. Switch Pro on in the left rail (see Toolbar, left rail and Easy or Pro mode), then open the Motion tab at the top of the inspector. When the element already has effects, the tab shows a count badge. In Easy mode, use the Animate tab of the Properties panel for one-click effects instead (see Easy Properties panels).

Click Add interaction

The Motion tab has four groups: Animations (a gallery of one-click effects), Entrance, a states group and Interactions. In Interactions, click Add interaction. A new row appears. Each row has an Effect select, a When select, any extra settings for that effect, a Preview button and a Remove interaction button. An empty list reads "No interactions yet. Add one to animate this element on the published site."

Pick the Effect

Choose from the list below. Changing the effect keeps the current When value if the new effect supports it, and resets the extra settings.

Pick When

Choose what starts the effect. The select is disabled when the chosen effect supports only one trigger.

Preview, then publish

Click Preview to play the effect on the canvas. Click Publish to make it live.

Effects and when they can run

EffectAllowed When valuesExtra setting
Fade inScrolls into view, Page loads, Is clicked, Is hoveredNone
Slide upScrolls into view, Page loads, Is clicked, Is hoveredNone
Scale inScrolls into view, Page loads, Is clicked, Is hoveredNone
LiftIs hoveredNone
GrowIs hoveredNone
GlowIs hoveredNone
ParallaxPage scrollsDistance (px), 0 to 100, default 24
Toggle effectIs clickedEffect: Highlight outline (default), Enlarge with shadow, Dim, Collapse height
Scroll to anchorIs clickedAnchor: choose from the anchors on this page

An element can carry up to 32 interactions. At the limit Add interaction is disabled and the popover shows "Maximum of 32 interactions per element reached."

Preview messages

Preview runs the effect on the canvas only; it never changes your page.

MessageMeaning
Previewing this effect on the canvas.The effect played.
Preview skipped: your system prefers reduced motion.Your computer's reduced-motion setting is on.
Preview is not supported in this browser.Your browser cannot play it.
This element is not on the canvas right now.Scroll or switch page so the element is visible.
This effect has no visual preview; it runs on click on the published site.Applies to Toggle effect.
No element with that id was found on the canvas.Applies to Scroll to anchor, when the chosen anchor no longer exists.

Give the destination an Anchor id

Select the element you want to scroll to (for example the container that holds your pricing). In the Pro inspector, open the Advanced group at the foot of the Design tab (it starts collapsed) and fill in Anchor id, for example pricing. You can also right-click the element and choose Add anchor (Edit anchor if it has one); type the id and press Enter to save, or leave it empty to remove it.

Add the click interaction

Select the button or link-style element. Open the Motion tab, click Add interaction under Interactions, set Effect to Scroll to anchor, then choose your anchor in the Anchor select.

Publish and test

Publish, open the live site and click the button. The page scrolls smoothly to the anchored element.

Anchor id rules

  • Letters are lowercased, and any run of other characters becomes a single hyphen. The id can be up to 64 characters.
  • Use letters, numbers and hyphens only. It cannot start with wbr- (reserved by the builder). If it breaks a rule you will see "Use letters, numbers and hyphens only (not starting with wbr-)."
  • Each id must be unique on the page: "Another element on this page already uses this anchor id."
  • The value becomes the element's id attribute on the published site, so you can also link to it by hand with #pricing in a link.
  • The Anchor id field appears for ordinary elements. Interactive widgets such as tabs, accordions, carousels, video and forms already export their own id and do not show the field.

If the Anchor select shows "No anchors yet. Give an element an Anchor id in its Advanced settings.", no element has an id yet. If it shows "This anchor id is no longer on the page.", the element was deleted or its id changed; pick a new one.

Reduced motion and accessibility

Visitors whose device is set to reduce motion get a calmer page automatically: entrance effects show immediately, hover effects and parallax are skipped, and scroll-to-anchor jumps instead of gliding. You do not need to configure this. Hover effects also run when a visitor tabs to the element with the keyboard.

Which effect for which job

Use Fade in or Slide up with Scrolls into view for content blocks, Lift or Grow for cards and buttons, and Scroll to anchor for in-page menus. Keep Parallax distances small; the default of 24 px is subtle.

Troubleshooting

Why doesn't my effect show on the published site?

  • You previewed but have not clicked Publish yet. Previews never go live.
  • The effect is Toggle effect, which has no preview; test it on the published site.
  • Your own device has reduced motion turned on, which intentionally disables most effects.
  • Scroll to anchor does nothing if the target element was deleted or its id was changed after you chose it. Reopen the Motion tab and check the Anchor select.
  • You are on an email or invoice template, where interactions are not available.