ScrollPremium

View Timeline Scale

The block grows as it crosses the lower half of the frame: starting at 70% and transparent at the bottom edge, it is only full-size and opaque when its centre reaches the middle — 183 px of scrolling for an 87 px block in a 280 px frame. animation-timeline: view(), range entry → cover 50%, CSS only.

CSSScaleView

Updated

This effect is part of Effect.Labs — 846 vanilla effects, some free, some premium. Scroll has 74 effects, including 12 free. Explore the category →

3 usage examples

Running order of a brass band contest — backstage screen — View Timeline Scale example 1

① Running order of a brass band contest — backstage screen

WhenScreen hung backstage during a contest: the list of bands with their number and stage time climbs slowly on its own. A dashed line across the middle marks the next band on stage.
WhyThe band reaching the middle line is the only one at full size among those waiting: the ones after it are smaller and paler the further away they are. The screen says “you are up soon” without one more colour, and reads from a distance.
SettingsThe effect's code unchanged. A 540 × 304 px area, ten 394 × 59 px rows, 10 px apart, 150 px of bottom padding: each row grows over 181 px. The automatic scrolling (40 px/s) is a timer in the scene: the effect itself does not advance on its own, it follows whatever scrolling it is given.
Kite cards — a maker's catalogue on a tablet — View Timeline Scale example 2

② Kite cards — a maker's catalogue on a tablet

WhenA kite maker's catalogue browsed on a tablet: filters on the left (single-line, stunt, in stock), cards on the right with the sail drawing, wind range and price, pushed up with a finger.
WhyYou look at one card at a time: the middle one is crisp and at its size, the next one announces itself below, smaller. The finger literally grows the product you are approaching. With Scale In the cards would all be full from the edge and that guidance would be gone.
SettingsThe effect's code unchanged. A 388 × 360 px area beside a 152 px filter panel, eight 352 × 110 px cards: each card grows over 235 px, nearly two cards of travel. Tray bottom padding: 136 px. In the capture a timer pushes the list up at 56 px/s in place of the finger.
Season review of a sea rescue station — a lifeboat crew's annual page — View Timeline Scale example 3

③ Season review of a sea rescue station — a lifeboat crew's annual page

WhenReview page of a lifeboat station: six figures from the season (call-outs, people brought ashore, time to cast off…) in very large type, each in its own block, read while scrolling the page.
WhyA 54 px figure still growing as it climbs gives weight to each number, and there are never two at full size competing in the lower half. The reader takes the figures in one by one, at the pace of the wheel.
SettingsThe effect's code unchanged. A 540 × 314 px area under a 46 px bar, six 460 × 132 px blocks 14 px apart: each block grows over 223 px. Tray bottom padding: 150 px. Capture scrolling: 58 px/s, by the scene's timer.

How it works

Five 260 px .sb-viewscale-box blocks stacked in the .sb-viewscale-content tray, itself inside the 280 px .sdc-scroll-container area. Each block gets transform: scale(.7); opacity: 0, the fx0546ScaleIn keyframe (back to scale(1) and opacity: 1) and animation-timeline: view(). What makes the effect is the range: animation-range: entry cover 50%. It starts the moment the top of the block touches the bottom of the area and runs to the halfway point of cover, the full crossing of the frame.

Halfway through cover is the moment the block's centre sits at the centre of the area. The trip is therefore (area height + block height) ÷ 2 long: 183 px here, 235 px for a 110 px card in a 360 px area. The result shows on load, before anything is touched: block 1 is full, block 2, midway, measures 52% opacity and scale .86, block 3 waits below the edge. While scrolling there are always two or three blocks at different sizes in the lower half: a gradient of sizes sliding by, not a pop.

Two construction details matter. The tray has 100 px of bottom padding, not 60: without it the last block could never climb to the middle and would stay stuck partway (measured with the padding: last block full at the end of travel, at 425 px). And transform does not move the neighbours: a block at 70% leaves a wider gap around it, which closes as it grows. Past the middle the block stays full until it leaves; scrolling back up undoes the path the other way.

Accessibility

  • Reduced motion: with prefers-reduced-motion: reduce the scale is removed (transform: none) and the fx0546Fade keyframe keeps opacity only. Blocks in the lower half are paler, at their size (measured: block 2 at 52% opacity, no transform). The bottom hint stops pulsing and scroll-behavior goes back to auto.
  • Legibility on the way: a block midway is both reduced and half transparent. Its secondary text, already quiet, falls below contrast thresholds until it reaches the middle. Do not put in these blocks anything that must be read without scrolling; or raise the starting point (opacity: .4 instead of 0).
  • Keyboard and screen readers: the area is reachable with Tab (tabindex="0", violet outline), announced as a named region, then scrolls with the arrow keys — checked in Chromium, Firefox and WebKit, which did not stop on it without that attribute. Blocks that are still transparent are read normally: opacity does not take them out of the accessibility tree.
  • Touch: native finger scrolling (a 150 px drag measured with Chromium touch emulation). On a small screen keep the area tall enough: below twice a block's height, nearly everything in view is growing and nothing is at its size.

Browser compatibility

No JavaScript, no dependency. Everything rests on animation-timeline and animation-range, supported from Chrome 115, Edge 115 and Safari 26; MDN lists Firefox 159. Identical values read in Chromium 149 and WebKit 26.5 (block 2 at .52 at rest, block 3 at .57 after 120 px). Firefox 151, the only Firefox version available for the test, does not know the property and shows the five blocks full; versions 159 and later remain to be checked.

Chrome 115+✓ Full (measured in Chromium 149)
Edge 115+✓ Not verified (same engine as Chrome)
Safari 26+✓ Full in the WebKit 26.5 test build; real Safari not verified
Firefox 159+✓ Not verified (support announced by MDN)
Firefox up to 158✓ Full, static blocks (measured in Firefox 151)
iOS 26+ / Android Chrome 115+✓ Not verified on a device

The reduced, transparent state is written inside @supports (animation-timeline: view()). A browser without scroll timelines skips the whole set of rules: it shows a plain list of five blocks at their size, which scrolls. The only visible difference is the 100 px padding at the bottom of the tray, which then serves no purpose.

The code

HTML structure to paste into your page (the CSS + JS come with your purchase):

index.html — structure
<div class="fx-0546-root">
  <div class="sdc-scroll-container" tabindex="0" role="region" aria-label="…">
    <div class="sb-viewscale-content">
      <div class="sb-viewscale-box">
        <h4>…</h4>
        <p>…</p>
      </div>
      … ×5
    </div>
  </div>
  <span class="sdc-scroll-hint" aria-hidden="true">…</span>
</div>

One-time payment, no subscription — the code is yours forever

Customize

Options passed to the API or data-* attributes:

Option / propertyDefaultEffect
End of the range (CSS — animation-range: entry cover 50%) cover 50%: full at the middle of the frame cover 30% finishes lower, in the bottom third; cover 70% requires climbing above the middle. Adjust the tray's bottom padding to match, or the last blocks will not finish.
Tray bottom padding (CSS — .sb-viewscale-content { padding: 60px 20px 100px }) 100 px Rule of thumb: at least (area height − block height) ÷ 2. For a 360 px area and 110 px cards, 125 px minimum. Below that the last block stops before it is full.
Starting scale and opacity (CSS — scale(.7), opacity: 0) .7 and 0 scale(.85); opacity: .35 keeps the lower blocks readable; scale(.5) pushes the depth effect. Opacity alone (scale 1) gives a list that lights up as it climbs.
Area height (CSS — .sdc-scroll-container { height: 280px }) 280 px The taller the area, the longer the trip: 360 px gives 235 px of growth for a 110 px block. With no height and no overflow-y, the window acts as the frame and the block is full at mid-screen.
Block width (CSS — .sb-viewscale-box { width: 260px }) 260 px, centred At full width (width: auto, tray on align-items: stretch) the shrinking shows on the sides too: allow a side margin of at least 15% so the block at 70% does not look detached.
Curve (CSS — animation-timing-function: linear) linear ease-out does most of the growing in the first third of the trip and leaves a long, nearly full plateau; ease-in keeps the block small for long, then grows it near the middle.

FAQ

Start and finish are the same (70% transparent → 100% opaque); only the range changes. Scale In finishes halfway through the block's entry: 43 px, a small swell at the edge. Here the growth lasts up to the middle of the frame: 183 px, over four times longer, with several blocks in progress at once. If you own one, you get the other by changing animation-range — and, in this direction, by adding the bottom padding.
Because it cannot climb to the middle: the area runs out of travel first. The cover 50% range requires the block's centre to reach the centre of the frame. Give the tray a bottom padding of at least (area height − block height) ÷ 2; the sold code uses 100 px for its 87 px blocks in 280 px.
Not with this code: the keyframe has a single destination, and past the middle the block stays full until it leaves through the top. A there-and-back would take the whole cover range and three keyframes (small, full at 50%, small): that is a different animation, which this page does not supply.