Main work of the script
The text and each internal text element is wrapped to preserve the color and made transparent.
The canvas is placed behind the text so that the text remains interactive.
Text position, size, color and styles are calculated and processed.
Unique glyphs are processed according to specified options and placed on the texture.
Generating a shader with the specified effects for the text.
The text is displayed on the canvas with the specified effects in the options.
The script main features
The text remains interactive, only the rendering changes
The script automatically updates the text and its color
Internal elements can have their own options with different effects
Text decorations, which is a cutting out of different patterns with effects
Animated text appearing with effects, configurable with various options
Changing text statically or dynamically with effects
Animated text effects
Text effects that react to the cursor position
Text effects that react to page scrolling
Static or animated backgrounds for text. Gradients or custom pictures
The rendered text automatically adjust to the device's pixel ratio
The minified script takes ~89 kb, gzipped ~32 kb
Different ways to install the script
To install the script using HTML attributes you need to:
Here you can customize the text and get options.
Click on an option for a more detailed description.
You can ask a question at any time on the item page.
The script is designed to animate and decorate the text header of the site, it can be one or more text headers on the page.
Animated change can only be predefined or dynamic by calling a special method. A simple text set will happen without animation.
The script works with block HTML elements that contain text. To use it on inline elements you need the wrapOnly option.
Yes. The 2D context of the canvas is used to draw the glyphs.
Yes, Emoji are rendered in color on the canvas. Pictograms have the text color.
Yes, the RTL text will be rendered in the correct order, and the text will appear from right to left.
But languages in which letters that change their form depending on their position in relation to other letters, such as Arabic, are only supported word by word with the split option.
$subtitle
Type: | $type |
Default: | $default |