- updated to dioxus v0.6.2
- minor fixes
- Resource optimization for web
- Replaced
use_value_animation
and use_transform_animation
with use_motion
hook
- Removed old animation configuration system
- Updated Transform property names for consistency
- Changed spring physics default parameters
- Removed deprecated animation methods
- Added Color animation support
- Introduced new
AnimationConfig
API
- Added support for animation delays
- Implemented loop modes (Infinite, Times)
- Added new spring physics configuration
- Improved cross-platform performance
- Added new examples and documentation
- Optimized animation frame handling
- Reduced CPU usage on desktop platforms
- Improved interpolation calculations
- Better memory management
- Enhanced cleanup on unmount
- Fixed color interpolation for decreasing values
- Corrected spring physics calculations
- Fixed desktop platform timing issues
- Resolved memory leaks in animation loops
- Fixed transform rotation interpolation
- Unified animation hook
use_animation
- Simplified configuration
- Enhanced type safety
- Better performance
let color = use_motion(Color::from_rgba(59, 130, 246, 255));
color.animate_to(
Color::from_rgba(168, 85, 247, 255),
AnimationConfig::new(AnimationMode::Spring(Spring::default()))
);
AnimationConfig::new(mode)
.with_delay(Duration::from_secs(1))
.with_loop(LoopMode::Times(3))
- Update dependencies and remove unused UUID references
- Stop animations on component drop for improved resource management
- Refactor delay function to improve animation frame handling
- Optimize animation frame handling for smoother performance
- Add Screen feature to web-sys and improve frame time calculation
- Force target 90 FPS hardcoding for consistent performance
- Remove Tailwind CDN dependency from Index.html
- Remove Particle Effect temporarily for stability
- Revert to initial implementation of delay function
- Code cleanup and optimization
- Adjust animation frame threshold for smoother performance
- Fixed Desktop Platform (Seemed to be broken previously)
- Fixed Desktop Platform (Seemed to be broken previously)