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 = falseshows every element in its final place, nothing pins and nothing moves. The motion script isn’t loaded at all.smoothScrollis 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
| Effect | Where you see it |
|---|---|
| Heading lines rise out of a mask | Section titles across the site |
| Fade up | Cards, text blocks and grids. Items in a grid follow one another, 60ms apart |
| Photo wipe | Photos wipe in from the bottom while they scale down slightly |
| Parallax | The Home 1 hero photo, the photo band at the top of inner pages, and a few full-width photos |
| Pinned row | The listings carousel on Home 2: on large screens the section stays in place and the scroll moves the row of homes sideways |
| Pinned steps | The 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 logos | The 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:
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
valueas a plain number, and put any text before or after it inprependValueorappendValue. from: "rating"shows the average score fromsrc/content/sections/english/rating.md, so it matches the reviews page.- The number follows the page language:
1,240in English shows as1 240in 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:
| Where | What it does |
|---|---|
| Property gallery | A click opens the photo large in a lightbox, with previous and next buttons and the arrow keys |
| Photos in a blog post | A click opens the photo larger |
Reviews carousel | Arrows step through the reviews |
| FAQ and other questions | Answers slide open and closed |
| Buttons | hoverEffect: "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 insrc/config/config.toml | switch the Home 2 listings to the grid layout and the Home 3 steps tothe timeline layout, in every language]. Don't change [settings.smoothScroll]. Then tell me whichpages to check.