All notable changes to this project will be documented in this file.
- Update supported Phoenix versions.
- Support for LiveView 0.18. The minimum required version is LiveView 0.18 now.
- Remove possibility to animate non LiveMotion components.
- Rename event props to
on_motion_start
andon_motion_complete
to be more compliant with other motion implementations.
- The
motion
component now usesdynamic_tag
from LiveView. This allows you to change the rendered HTML element. - The
motion
component can be be self-closing (<LiveMotion.motion />
). - Support for
glide
animations. - Use provided
duration
as a hint when usingspring
orglide
easing functions. - Add
hover
,press
,in_view
,in_view_options
props.
- Use
createMotionState
for handling of the animation states. - Update
motion
to10.14.2
.
- Adds new lifecycle functions
on_animation_start
andon_animation_complete
. - Make
LiveMotion.JS
functions composable withPhoenix.LiveView.JS
.
- Converted JavaScript codebase to TypeScript.
- Animations trigger correctly when a component is updated. ([#3]).
- Added
LiveMotion.JS.show/1
to allow animations when showing elements. - Added
defer
option toLiveMotion.motion
to prevent animations on mount.
- Incorrect
to
option onLiveMotion.motion
. This broke exit animations when navigating to other pages.
🚀 Initial release.