DOC: Replace landing page Roakey peeks with animated spritesheets - #2314
Open
romanlutz wants to merge 2 commits into
Open
DOC: Replace landing page Roakey peeks with animated spritesheets#2314romanlutz wants to merge 2 commits into
romanlutz wants to merge 2 commits into
Conversation
Swap the two photoreal Roakey images on the landing page for three cartoon spritesheets whose frames are stepped by a scroll timeline, so each mascot plays a short sequence as its section scrolls into view. Each sprite is a fixed-size window onto a horizontal frame strip: object-fit none renders the strip at 1:1 and the box clips it to one frame, so animating object-position steps through frames. The base object-position is the last frame, which is what shows when scroll timelines are unsupported or reduced motion is requested; starting from the first frame would leave the scout invisible because its opening frame is an empty ledge. Placement is anchored to content rather than the page edge so the three sit at distinct levels: the scout perches on the CoPyRIT card, the spyglass rests on the install code block, and the flag arrives centred below the tab group. The flag scrubs over a fixed 200px rather than a percentage of cover, because it sits at the very bottom of the page where a viewport-relative range would strand the sequence mid-run on tall screens. Net asset size drops about 1.4 MB. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 13a6d940-c11c-4ba7-a4d4-bc6b9d75c757
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.
Description
The landing page currently slides two photoreal Roakey images in from the screen edges as you scroll (added in #2099). This replaces them with three cartoon spritesheets that actually animate: each mascot plays a short frame sequence driven by a scroll timeline as its section comes into view, then holds its final pose.
roakey-landing-scroll.mp4
Each sprite is a fixed-size window onto a horizontal frame strip.
object-fit: nonerenders the strip at 1:1 and the box clips it to a single frame, so animatingobject-positionsteps through the frames. Aview()timeline drives that stepping, which means the reader scrubs the animation rather than watching it play on a timer.Placement is anchored to the content each sprite belongs to rather than to the page edge, so the three sit at clearly different levels down the page:
Two details worth a reviewer's attention:
Reduced motion needed a real fallback, not
animation: none. The baseobject-positionis the last frame, not the first. The previous rule disabled the animation outright, which would pin the scout to frame 1 - and frame 1 is an empty ledge, so it would render as nothing at all. Verified that all three show a meaningful static frame underprefers-reduced-motion: reduce.The flag scrubs over a fixed
200pxinstead of a percentage ofcover. It sits at the very bottom of the page, where only ~230px of scrolling remains once it starts entering. A percentage range scales with viewport height, so on tall screens the page ran out of scroll and the flag plant never landed. Confirmed completing at 700/900/1080/1300px viewport heights.Sprites stay gated to viewports >= 1536px (same rule the old peeks used) so they never cover the centred content column, and are hidden entirely below that.
Net asset size drops about 1.4 MB: the two photoreal PNGs were 989 KB and 813 KB, the three spritesheets total 366 KB.
Tests and Documentation
No tests or JupyText runs apply - this is a landing page asset and stylesheet change with no Python surface.
Verified against a local
myst build --htmlin Chromium at 1700x900:.myst-codewrapper that paints the backgroundThe recording above is a slow scroll through the full page at 1600x900.