Skip to content

Conversation

@owjs3901
Copy link
Contributor

Implement keyframe generation logic that converts Figma's SMART_ANIMATE
transitions to CSS keyframe animations.

Features:

  • New keyframe.ts module with comprehensive keyframe generation functions
  • Enhanced getSelectorProps() with optional keyframe generation
  • generateKeyframeFromTransition() for single transition conversion
  • generateKeyframesForEffects() for multiple effect handling
  • Smart animation name generation based on effect and properties
  • Full unit test coverage (14 tests, 100% function coverage)
  • Comprehensive usage documentation in KEYFRAME_USAGE.md

The feature is opt-in via useKeyframes option, maintaining backward
compatibility with existing CSS transition behavior.

Implement keyframe generation logic that converts Figma's SMART_ANIMATE
transitions to CSS keyframe animations.

Features:
- New keyframe.ts module with comprehensive keyframe generation functions
- Enhanced getSelectorProps() with optional keyframe generation
- generateKeyframeFromTransition() for single transition conversion
- generateKeyframesForEffects() for multiple effect handling
- Smart animation name generation based on effect and properties
- Full unit test coverage (14 tests, 100% function coverage)
- Comprehensive usage documentation in KEYFRAME_USAGE.md

The feature is opt-in via useKeyframes option, maintaining backward
compatibility with existing CSS transition behavior.
@owjs3901 owjs3901 closed this Dec 22, 2025
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.

3 participants