Commit dee17f6
committed
@ Banner: title sink, narrower break-out, feather edges, SPA nav fix
- h1 gets a mask-image gradient driven by a --p CSS variable. JS sets
it on every scroll frame (smoothstep of scrollY/pinDist), so the
title's bottom half progressively fades to transparent as the banner
pins behind it. At p=1 the top 30% stays solid, 30%–90% gradient-
fades, 90%–100% fully transparent. At p=0 both stops park past 100%
so the visible mask area is solid throughout.
- Banner break-out trimmed from -3rem to -2rem (mobile -1.5rem to
-1rem). Wider than the column-inner text it backs, but with
breathing room before the column's outer edge — feels like a plate
rather than a full-bleed strip.
- Edge feather replaces the inset-shadow vignette / hairline border
experiments. Two linear-gradient masks on .cb-track combined via
mask-composite: intersect (10px horizontal, 8px vertical falloff).
Where the mask is transparent, .cine-banner's solid bg shows
through, matching the page bg — invisible seam, no text leak.
Linear falloff feels softer than the Gaussian shoulder of an
inset box-shadow, no visible boundary line.
- bannerEase no longer waits on the .enter animation's `finished`
Promise before running init. The wait could strand the banner
invisible (opacity: 0 from .enter's initial keyframe) when the
animation timeline pauses — happens reliably in headless / hidden
tabs and intermittently after SPA nav back from a sketch when view
transitions briefly suspend animations. init's first line removes
the .enter class which cancels the animation regardless of state,
so the wait was always unnecessary. Trade-off: banner skips its
fade-in entry; h1 / sub / list still get theirs.1 parent 8410866 commit dee17f6
2 files changed
Lines changed: 72 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
215 | 230 | | |
216 | 231 | | |
217 | 232 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
173 | 179 | | |
174 | 180 | | |
175 | 181 | | |
176 | | - | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
177 | 186 | | |
| 187 | + | |
178 | 188 | | |
179 | 189 | | |
180 | | - | |
181 | | - | |
| 190 | + | |
| 191 | + | |
182 | 192 | | |
| 193 | + | |
183 | 194 | | |
184 | 195 | | |
185 | 196 | | |
| |||
215 | 226 | | |
216 | 227 | | |
217 | 228 | | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
224 | 241 | | |
225 | 242 | | |
226 | 243 | | |
| |||
273 | 290 | | |
274 | 291 | | |
275 | 292 | | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
283 | 300 | | |
284 | 301 | | |
285 | 302 | | |
| |||
324 | 341 | | |
325 | 342 | | |
326 | 343 | | |
327 | | - | |
| 344 | + | |
| 345 | + | |
328 | 346 | | |
329 | | - | |
330 | | - | |
| 347 | + | |
| 348 | + | |
331 | 349 | | |
332 | 350 | | |
333 | 351 | | |
| |||
346 | 364 | | |
347 | 365 | | |
348 | 366 | | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
349 | 387 | | |
350 | 388 | | |
351 | 389 | | |
| |||
0 commit comments