Frontend polish: back-to-top button & animated category progress bars#157
Draft
Copilot wants to merge 2 commits into
Draft
Frontend polish: back-to-top button & animated category progress bars#157Copilot wants to merge 2 commits into
Copilot wants to merge 2 commits into
Conversation
8 tasks
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Agent-Logs-Url: https://github.com/RahilKothari9/chimera/sessions/b8d308ac-4642-4848-8d67-2d6a34e0bc23 Co-authored-by: RahilKothari9 <110282686+RahilKothari9@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Polish Chimera frontend for enhanced visual quality
Frontend polish: back-to-top button & animated category progress bars
May 3, 2026
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.
Adds two focused visual improvements to the long-scrolling SPA without touching functionality.
Changes
Back-to-top floating button (
src/main.ts,src/style.css)scrollY > 400px, revealed via spring-bounce animation (ease-bounce+opacity+scale)--color-accent → --color-accent-secondary), accent glow shadow, hover-lift, active-press feedbackrequestAnimationFrame+ atickingflag to avoid per-pixel DOM mutations--back-to-top-clearanceCSS custom property documents the vertical offset above the theme-toggle button (56 px button + gap → 72 px desktop / 68 px mobile) instead of bare magic numbersaria-label,focus-visiblering;prefers-reduced-motionsuppresses transform, keeps opacity fadeAnimated category progress bars (
src/dashboard.ts,src/style.css)bar.style.width = "${pct}%"synchronously, making the existingtransition: width 1sa no-op (no state change to transition from)0%, target stored as--bar-target-widthCSS custom property,requestAnimationFrameadds.animatewhich triggers@keyframes bar-fill { from { width: 0 } to { width: var(--bar-target-width) } }prefers-reduced-motionskips the keyframe and snaps directly to target width