特效 · All You Need Is Taste · 前天
An Effect (mount → destroy): a band that pins the view while its row of view-wide slides travels sideways with the scroll.
The band is 150 % of a view tall per slide (three slides: 4.5 views); its stage is position: sticky, top 0, one view tall. Travel starts when the band's top reaches the view's top and lasts L = max(T / W × C − 0.1 × view height, 0.1 × C) px of scroll — W the row's width (slides × view width), T = W − view width, C the band's height — linear, so at a 1600 px view with two slides the row moves 1.252 px across for every px down; the rest of the band (C − view − L) is a held beat with the last slide filling the view, then the page lets go. The row never jumps to the scroll: every new scroll target starts a fresh 1000 ms glide from where the row is, exponential out (1 − 2^(−10t)), counted from the previous frame, so on a continuous trackpad scroll the row follows about 0.15 s behind and lands softly within 0.4 s of the scroll stopping. One wide picture straddles the seam before the second slide and changes as it crosses: its own progress q runs from the picture's top 0.35 view above the view's top to its centre 1.0 view above, on the same glide; the second picture fades in over the first half of q, the first fades out over the second, each on cubic-bezier(0.4, 0.25, 0.2, 1); a gauge across the same seam runs its 3 px tick q × (bar − tick − 18 px). Scroll back and everything plays backwards. Under 768 px of root the slides stack and nothing pins. From Brimwater's pond margin, Mardle's quiet room and Quarrow's bottling bench.
適合你嗎?
適合
- 固定畫面、讓投影片橫向滑過的區塊
- 分成幾個章節的旅遊、建築或編輯故事
- 隨著橫列移動在接縫處變換的攝影作品
不適合
- 窄螢幕:投影片會改成直向堆疊
- 不喜歡捲動被固定區塊接管的訪客













