[FEATURE] splitText hyphens, hyphenate-character and hyphenate-limit-chars support
Author: glypseCreated Sep 4, 2026Updated Sep 4, 2026
Labelsfeature proposal
Current splitText doesn't support hyphenation. Support for CSS hyphens, hyphenate-character and hyphenate-limit-chars would be great for neater typographic control.
I guess that ideally splitText would detect the computed text style on the original text (ie: via getComputedStyle()), or we could manually pass it as a setting like splitText(target, {hyphens: "auto", hyphenate-character: "=", hyphenate-limit-chars: ["10", "auto", "4"],});.
No real alternative available.
Source: juliangarnier/anime