Pin the backdrop to the viewport and give the blocks depth - #5
Merged
Merged
Conversation
The field no longer scrolls away with the page: all three layers are background-attachment: fixed, so it stays a backdrop. iOS Safari has historically ignored that and fallen back to scrolling, which is a fine degradation since the pattern tiles either way. The tile is redrawn at 300x900, taller than most viewports, so a layer shows about one pass of the size gradient instead of cycling it two or three times down the screen. Blocks are grouped into five opacity bands to give the field depth, mostly following size since a nearer block is both bigger and more solid, with a few off that curve so it does not read as one flat fade. Sizes are mixed at every height rather than sorted, because clustering one size in one area reads as banding, and heights are capped near 85 tile units, since the largest layer scales by about 1.5 and anything taller became a streak down a third of the screen.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #4, all in
src/app/global.css.Not scrollable. All three layers get
background-attachment: fixed, so the field stays a backdrop instead of scrolling off with the page. Verified with screenshots atscrollY=0andscrollY=900: the block pattern is in the identical position while the content has moved 900px. iOS Safari has historically ignored this and fallen back to scrolling, which is a soft landing here since the pattern tiles either way.One size gradient per screen. The tile is redrawn at 300x900 and the layers sit at 900/1140/1380px, at or above a typical viewport. Before this the tiles repeated two or three times per screen, so the taper cycled big/small/big/small instead of reading as one gradient. Each layer still travels exactly its own height per cycle, so the loop stays seamless and the three speeds stay different.
Depth. The 29 blocks are split into five
<g fill-opacity>bands,.045down to.009in light and.06down to.012in dark. Opacity mostly follows size, since a nearer block is both bigger and more solid, but a few sit off that curve on purpose: a strict size-to-opacity correlation reads as a fade down the page rather than as blocks at different distances.Two things in the rect list look like untidiness and are not, and the comment says so: sizes are mixed at every height rather than sorted, because clustering one size in one area reads as banding; and heights are capped near 85 tile units, since the largest layer scales by about 1.5 and anything taller stops being a block and becomes a streak down a third of the screen.
🤖 Generated with Claude Code