LAYOUT / iOS / NATIVESCRIPT VUE
Make a little room.
Insert, reorder and expand. Everything moves together.
The motion behind it.
Jolt 0.1.0-rc.11The core API example, taken directly from the guide. Use the full demo for the surrounding interface and controls.
TypeScript · NativeScript
import { animateLayout } from '@rafaelaugusto/jolt'
animateLayout(list, () => rows.value.splice(1, 0, newRow))
animateLayout(list, () => rows.value.reverse(), 'snappy')
animateLayout(list, () => {
expanded.value = !expanded.value
})