morphtext 0.1.0
morphtext: ^0.1.0 copied to clipboard
Text that morphs letter by letter, outline into outline: a light word turns bold, a serif turns sans, one word becomes another or flows into an icon. Built on morphnext's outline engine.
0.1.0 #
First release.
MorphText: text morphing letter by letter, driven byprogress(anAnimation<double>, as morphnext'sMorphIcontakes it), between any two styles (weight, size, colour, slant, or one font family into another) and, withtoText, from one word into another. Plain text at either end.AnimatedMorphText: springs to each new text and style with morphnext'sMorphSprings.snappyby default (re-exported; anySpringDescriptionworks), reversing mid-flight from where it is and keeping its velocity; or along an optionalcurveover a fixedduration. Plain text at rest, faded in over the outlines in the last of the motion (handoff, 0.1 by default) so nothing changes after it lands.MorphTextandMorphBetweentakehandofftoo, 0 by default.MorphContent,MorphBetweenandAnimatedMorph: text and icons morph into each other (a word flows into an icon, an icon into another), read from any bundled icon font; each end is pixel for pixel aTextorIcon.- Letters pair by a weighted edit distance; leftover letters shrink to or grow from a point.
- Extracted from Numina, where it carries a stone's name from Today's light title to its card's bold one.