Repository navigation
feat(admin): side menu and Settings icons come alive on hover - #142
Merged
Merged
Conversation
The icons only wobbled a little on hover. Now the icon stays as it is and only its glyph moves, each in its own way: the house hops, the users nod, the plane flies off and comes back, the gear turns, the heart beats, the lock shakes, the cloud drifts, ... (_icon-motion.scss, one map of icon -> keyframes for both places). The motion repeats with a short rest while the mouse stays on the item; the icon clips the glyph, so a glyph that leaves comes back in cleanly. Nothing moves on touch or with reduced motion. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Problem
Hovering an icon in the side menu or in the Settings category list only made it wobble a little (scale and rotate a few degrees). It looked more like a glitch than an animation.
Change
assets/sakai/layout/_icon-motion.scss: on hover only the glyph moves (the icon's::before); the chip and the colours stay as they are. Each icon gets a motion that fits what it shows, from one SCSS map of icon → keyframes that both places use:overflow: hidden), so a glyph that leaves comes back in cleanly._menu.scssandSettingsView.vue: the old wobble keyframes are removed. The Settings icon gets a slightly bigger clip box, with negative margins so the glyph and the name don't move.(hover: hover)andprefers-reduced-motion: no-preference: nothing moves on touch or with reduced motion.Screenshots
Captured frame by frame and played back at real speed.
More icons, each hovered:
Tested
Review
🤖 Generated with Claude Code