Skip to content

fix(badge): fix badge SVG generation with animated effects #50

Merged
wontory merged 2 commits intomainfrom
hotfix
Feb 8, 2026
Merged

fix(badge): fix badge SVG generation with animated effects #50
wontory merged 2 commits intomainfrom
hotfix

Conversation

@wontory
Copy link
Copy Markdown
Owner

@wontory wontory commented Feb 8, 2026

Bug Fixes

  • Fix shine animation not working on Safari/iOS by replacing gradientTransform SMIL animation with rect translate approach
  • Fix blurry icons on Safari caused by SVG filter rasterization (removed glow filter)
  • Improve trailing light blob connectivity (3 blobs/0.3s gap → 5 blobs/0.12s gap)
  • Add XML escaping for orbit SVG text to prevent XSS injection
  • Fix orbit SVG width not accommodating long text

Test plan

  • Badge API endpoint (/api/badge) returns valid SVG
  • Badge customization UI with real-time preview
  • Shine animation works on Safari/iOS
  • Icons render sharp on Safari
  • Highlight toggle enables/disables animations

Note

Medium Risk
Changes SVG/SMIL rendering approach and removes filters, which can affect cross-browser visuals and animation behavior, but stays within isolated badge SVG generation.

Overview
Improves generated badge SVG animations and rendering consistency across browsers by reworking the shine effect to animate a skewed translating rect (instead of animating gradientTransform) and by switching the trailing-light blur from an SVG filter to CSS filter:blur().

Removes the icon glow filter (and its usage on the icon SVG) to avoid Safari filter rasterization blur, and tunes the trailing-light motion (more blobs and tighter spacing) for smoother connectivity.

Written by Cursor Bugbot for commit 72c21a8. This will update automatically on new commits. Configure here.

…ters

Eliminate the glow filter from the badge SVG generation and modify the blob count and gap for improved animation effects.
@wontory wontory self-assigned this Feb 8, 2026
@wontory wontory added the bug Something isn't working label Feb 8, 2026
@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Feb 8, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
tech-stack Ready Ready Preview, Comment Feb 8, 2026 9:49pm

@wontory wontory merged commit 1c804ad into main Feb 8, 2026
3 checks passed
@wontory wontory deleted the hotfix branch February 9, 2026 00:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant