Morphlite is an attempt to create a DOM morphing function in less than 100 lines of code with no runtime dependencies, to use with HTMZ in small projects. It is still very much a work-in-progress.
We have a basic sketch of the morphing function in src/morphlite.ts
that can handle simple cases. Now, we’re copying tests from Morphdom, Idiomorph, Alpine Morph, and nanomorph.
npm install
npm watch
- in another tab
npm run "test:watch"
import { morph } from "morphlite";
morph(currentNode, guideNode);