Skip to content

Improve HTML/SVG CSS animation import and editor polish - #19

Merged
vgomx merged 2 commits into
mainfrom
cursor/ui-polish-ci
Jul 12, 2026
Merged

Improve HTML/SVG CSS animation import and editor polish#19
vgomx merged 2 commits into
mainfrom
cursor/ui-polish-ci

Conversation

@vgomx

@vgomx vgomx commented Jul 12, 2026

Copy link
Copy Markdown
Owner

Summary

  • Extend HTML/SVG import to parse CSS @keyframes animations (nested bob/jitter/spin, CSS variables, from/to selectors) and merge them onto static artwork without duplicating layers
  • Fix train import fidelity: normalize line/path coordinates for keyframe merge, correct ellipse bounds/pivot math so wheels spin in place, and preserve pantograph connector lines
  • Add scaleX/scaleY shape properties (migration v12) and an HTML import progress toast

Test plan

  • npm test — 179 tests passing
  • Import train-404-bg.html — pantograph visible, wheels spin in place, bob/jitter animate
  • Spot-check other SVG/HTML imports for regressions
  • Verify scaleX/scaleY in properties panel and timeline keyframes

Made with Cursor

vgomx and others added 2 commits July 12, 2026 14:39
Add scaleX/scaleY support, normalize line/path placement for keyframe merge, correct ellipse pivot math for wheel spin, and show progress while importing HTML animations.

Co-authored-by: Cursor <cursoragent@cursor.com>
Paint loading toasts before heavy import work, add a visible progress bar, and resolve strict build failures in css-keyframes and the train import regression test.

Co-authored-by: Cursor <cursoragent@cursor.com>
@vgomx
vgomx merged commit caff989 into main Jul 12, 2026
1 check passed
vgomx added a commit that referenced this pull request Jul 12, 2026
…icts.

Keep branch-side group layers, Lottie progress, and path pivot transforms over overlapping PR #19 changes on main.

Co-authored-by: Cursor <cursoragent@cursor.com>
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.

1 participant