Skip to content

feat(admin): side menu and Settings icons come alive on hover - #142

Merged
hiddify-com merged 1 commit into
hiddify:devfrom
Hiddify-Official:feat/icon-hover-motion
Nov 1, 2026
Merged

hiddify-com merged 1 commit into
hiddify:devfrom
Hiddify-Official:feat/icon-hover-motion

Conversation

@Hiddify-Official

Copy link
Copy Markdown
Contributor

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

  • New 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:
    • home: hops; users: nod; paper plane (Send message, Telegram): flies off and comes back; gear: turns
    • wrench and key: twist; bolt: flashes; heart: beats; lock and alerts: shake; cloud: drifts
    • globe: turns; palette and link: swing; monitor: switches on; eye: blinks; chart: grows
    • any icon not listed: a small hop
  • The motion repeats with a short rest while the mouse stays on the item. The icon clips the glyph (overflow: hidden), so a glyph that leaves comes back in cleanly.
  • _menu.scss and SettingsView.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.
  • Only with (hover: hover) and prefers-reduced-motion: no-preference: nothing moves on touch or with reduced motion.

Screenshots

Captured frame by frame and played back at real speed.

Before After
before after
before after

More icons, each hovered:

Side menu Settings
menu settings

Tested

  • On main, eight icons captured frame by frame with Playwright, four in the side menu and four in the Settings list: home, users, send, gear, palette, plane, lock and cloud. Each moved as intended and came back to rest.
  • The plane's flight was shortened after a first pass left the chip empty for too long.
  • The UI build passes; the change is CSS only.

Review

  • Confidence: High (>90%) — CSS only, scoped to hovering these two lists, with no layout change at rest.
  • Complexity: Simple — one new stylesheet and small edits to two files.

🤖 Generated with Claude Code

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>
@hiddify-com
hiddify-com merged commit 29b9283 into hiddify:dev Nov 1, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants