0.16.1 (2024-12-10)
- do not try hardware acceleration if browser is not supported (9d5644c)
- improve hardware accelerated animation timing function precision (657333f)
0.16.0 (2024-12-03)
- fix the problem that unit completion is not applied in some cases (9a77969)
0.15.0 (2024-11-20)
- add relocating option for
useSpring
and<spring>
(fdae4cb)
0.14.0 (2024-11-18)
- set spring style value immediately if the value is not animatable (df35daf)
- set enter/leave transition classes to transitioning elements as same as Vue's transition components (8a70820)
0.13.0 (2024-10-03)
- ensure triggering animation / update options when values passed to useSpring are mutated (bc863ef)
- add
disabled
prop for<spring>
element (fc54bac)
0.12.3 (2024-06-16)
- fix problem that an animation may not work on chrome (45cde70)
- make animation controller auto complete missing unit when animation to 0 value is stopped with
stop()
method (#9) (907e381)
0.12.2 (2024-03-08)
- avoid triggering transition when set styles are the same with the previously set styles (e981e72)
- make velocity normalization expression correct (ccaf9d6)
0.12.1 (2024-03-07)
- do not trigger transition when from and to are the same and velocity is 0 (e987e54)
0.12.0 (2024-01-16)
- auto complete 0 value without unit in animation style (284ecdc)
0.11.0 (2023-12-29)
- fallback leaveTo to enterFrom style when it is not specified (a680420)
- inherit previous move velocity when move transition is occurred repeatedly (#7) (f2ec6cd)
- Added
onFinishCurrent
function touseSpring
composable.
- Added
<SpringTransitionGroup>
component. - Added
mode
prop to<SpringTransition>
component (as same prop asmode
prop of<Trasntion>
).
- Bundle
<SpringTransition>
component type.
- Added
<SpringTransition>
component.
- reset transition and time custom property when
useSpring
is disabled
- Improve spring parameters
- Rename default exported plugin object with
springDirectives
- add
spring
component namespace. e.g.<spring.div :spring-style="{ translate: x + 'px' }"></spring.div>
- hyphenate style property name passed to
v-spring-style
directive.
- alpha part in hex color should be in range 0-1
- Allow to pass normal string for animation target value.
- Support hex color (
#RRGGBB
) animation.
- Removed
s
util function.
- calculate velocity from input style automatically while disabled
- Removed velocity option from
useSpring
andv-spring-options
- annotate v-spring-options type for type diagnostics
- ensure
v-spring-options
value is applied before triggeringv-spring-style
animation on the same update.
- removed
useSpringStyle
- add
s
util. - add
v-spring-style
andv-spring-options
directives. - allow to install the above directives globally by
app.use(plugin)
.
animate
anduseSpring
interface is changed.- removed
unit
util.
- return real value and real velocity after animation is stopped.
finishingPromise
andsettlingPromise
should be resolved after internal processing is finished.
- Add
useSpring
vue composable.realValue
andrealVelocity
are available in addition tostyle
fromuseSpringStyle
.
- Renamed the returned context properties from
animate
.ctx.current
->ctx.realValue
ctx.velocity
->ctx.realVelocity
- Add
unit
function in favor ofunit
option
unit
option ofanimate
is removed
- Add
unit
option
Initial release