The most versatile JavaScript typewriter effect library on the planet.
Not much exciting here. Just some dependency updates, and switching over from a Node to bash for the postinstall script.
When a number of steps was being passed to .move()
that was outside the range of typed characters, unexpected weirdness was occurring. This released fixes that bug. Passing values beyond the lower or upper range of typed characters will no longer cause any execution problems, but instead just work.
There were a couple of issues occurring with TypeIt's callback methods.
v8 introduces a host of new features & enhancements, and with limited breaking changes. For a full changelog, see here:
A bug was causing a delay to gradually increase as animations looped over and over again. This releases fixes that bug, simplifying the internal loop logic along the way.
There was a bug that was removing a custom cursor children during deletion. This release properly ignores the cursor and its children correctly, so that they're preserved throughout the animation.
A bug was causing <br>
tags to be removed when strings were being deleted. This release fixes that.
This release fixes a bug caused by how TypeIt handled empty strings passed to the strings
option. When something like ["", "foo", "bar"]
was passed, the animation would halt on the empty string. See issue #199 for more details.
TypeIt v7 is here!
.move()
method to move the cursor wherever you want during animation.This example uses some of the new features of v7, including movable cursors and instance method delays:
This release fixes a two bugs:
In addition, all callback methods are now asynchronous, so you can effectively put them on hold until some asynchronous action has completed. Example:
new TypeIt({
strings: "My string is here",
afterStep: async () => {
// Won't move onto the next step until timeout completes:
await new Promise((resolve, reject) => {
setTimeout(() => {
return resolve();
}, 2000);
});
})
}).go();