Skip to content

Releases: TahaSh/veloxi

v0.4.2

09 Jun 15:33
Compare
Choose a tag to compare
0.4.2

v0.4.1

09 Jun 06:32
Compare
Choose a tag to compare
0.4.1

v0.2.0

06 May 18:55
Compare
Choose a tag to compare

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).

v0.1.1

30 Apr 21:14
Compare
Choose a tag to compare
0.1.1

v0.1.0

30 Apr 20:20
Compare
Choose a tag to compare
v0.1.0