Skip to content
New: Customize your theme with an AI assistant. Read the guide

Animations & Interactions

Files: src/config/config.toml, section content files · Skill level: Beginner

Lotline moves as the visitor scrolls: headings rise out of a mask, photos wipe in, a few photos drift a little slower than the page, and two sections pin in place while their content moves. All of it is controlled by one switch, and all of it respects the visitor’s reduce motion setting.

The Two Switches

[effects]
motion = true # scroll reveals, parallax, pinned sections and the moving logo row
smoothScroll = false # smooth scrolling with Lenis (tuning in [settings.smoothScroll])
  • motion = false shows every element in its final place, nothing pins and nothing moves. The motion script isn’t loaded at all.
  • smoothScroll is off by default, because the browser’s own scrolling feels right on most devices. See Smooth Scroll.

Visitors who ask their system for reduced motion get the still page whatever these settings say. Without JavaScript, the page shows in its final state too.

What Moves

EffectWhere you see it
Heading lines rise out of a maskSection titles across the site
Fade upCards, text blocks and grids. Items in a grid follow one another, 60ms apart
Photo wipePhotos wipe in from the bottom while they scale down slightly
ParallaxThe Home 1 hero photo, the photo band at the top of inner pages, and a few full-width photos
Pinned rowThe listings carousel on Home 2: on large screens the section stays in place and the scroll moves the row of homes sideways
Pinned stepsThe steps row on Home 3: on large screens the section stays in place, the current step is at full strength and the others are dimmed
Scrolling logosThe logos band on Home 1: the row drifts and speeds up with the scroll, then eases back

The motion never touches the hero’s main heading or its main photo, so the first screen shows at once. Distances are small, and everything uses one shared ease (--ease-motion in src/styles/theme.css) and a 700ms reveal.

On phones and tablets, and whenever motion is off, the listings carousel is a row you swipe, and the steps show as a plain row. The arrows and keyboard still reach every card when the row is pinned.

Count-Up Numbers

Numbers in the stats section (Home 2, About and How it works) and the rating on the reviews page count up from zero when they scroll into view:

src/content/sections/english/stats-section.md
list:
- value: 1240 # sample
label: "Homes sold since 2004"
- from: "rating" # the average score in sections/rating.md
label: "Average review score"
- value: 98 # sample
appendValue: "%"
label: "Of asking price, last year's average"
  • Write value as a plain number, and put any text before or after it in prependValue or appendValue.
  • from: "rating" shows the average score from src/content/sections/english/rating.md, so it matches the reviews page.
  • The number follows the page language: 1,240 in English shows as 1 240 in French.
  • The page’s HTML always holds the final value, so search engines, screen readers and visitors without JavaScript see the real number. With reduced motion or motion = false, the final value shows at once.

The Older Fade-In

[settings.animation] tunes a simpler fade-in that a few parts still use, such as some section intros:

[settings.animation]
enable = true
respectReducedMotion = true
easing = "cubic-bezier(0.215, 0.61, 0.355, 1)"
duration = "600ms"
distance = "0.75rem"

Keep respectReducedMotion = true. Most of the motion comes from [effects] motion, so change that one first.

The Header Menu

On large screens, the header menus share one dropdown panel. Moving from one menu to the next, the panel changes width, height and position while the content slides across. With reduced motion, the panel only fades. There is no setting for it. See Navigation.

Other Interactions

These aren’t animations you configure, but they move:

WhereWhat it does
Property galleryA click opens the photo large in a lightbox, with previous and next buttons and the arrow keys
Photos in a blog postA click opens the photo larger
Reviews carouselArrows step through the reviews
FAQ and other questionsAnswers slide open and closed
ButtonshoverEffect: "text-flip" flips the label on hover

For Developers

The motion is a set of data attributes, written up at the top of src/styles/motion.css: data-reveal (fade up), data-reveal="mask-lines" and "mask-words" (use the RevealText widget), data-reveal="clip" (photo wipe), data-stagger, data-parallax, data-pin and data-velocity-marquee. The script is src/scripts/motion.ts. Every start state sits under html.motion, which a small script in the head adds only when motion is on and the visitor hasn’t asked for reduced motion. Use transform, opacity and clip-path only.

Do It With AI

Make the motion on my Lotline site [calmer | off]: [set [effects] motion = false in
src/config/config.toml | switch the Home 2 listings to the grid layout and the Home 3 steps to
the timeline layout, in every language]. Don't change [settings.smoothScroll]. Then tell me which
pages to check.
Type something to search...