Releases: TahaSh/veloxi
Releases · TahaSh/veloxi
v0.4.2
v0.4.1
v0.2.0
New features
Support layout transitions
Layout transitions are disabled by default. Here's how to enable it on a specific view:
view.layoutTransition(true)
Support add and remove transitions
When the DOM element associated with the view is removed, you get the chance to run animations before it's removed.
Here's an example:
view.onRemove((v, done) => {
v.position.set({ y: v.position.y + 100 }, true)
v.opacity.set(0, true)
v.position.animator.onComplete(done)
})
You can also animate views when they are added to the DOM.
view.onAdd({
beforeEnter: (v) => {
v.opacity.set(0, false)
v.position.set({ y: v.position.initialY - 100 }, false)
},
afterEnter: (v) => {
v.opacity.reset(true)
v.position.reset(true)
}
})
Fixes
- fix
view.overlapsWith
to consider scaled views. - fix progress calculation for
view.position.progressTo(position)
.