fix(motion-text): DLT-2804 motion-text recipe letter-spacing improvements #1001
+40
−7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
fix(motion-text): DLT-2804 motion-text recipe letter-spacing improvements
Obligatory GIF (super important!)
🛠️ Type Of Change
These types will increment the version number on release:
These types will not increment the version number, but will still deploy to documentation site on release:
📖 Jira Ticket
https://dialpad.atlassian.net/browse/DLT-2806
📖 Description
display:inlineand words to havedisplay:inline-blockto better align with how text normally flows and to align theletter-spacing. See the misaligned overlap for "Text":Note: It does shift the "slide-in" technique from a "letter-by-letter" animation to "word-by-word", which I think is actually more in line with the brand animations I've seen previously.
gradient-inanimation, look for the first letter appearing black first, and then the rest of the word has the gradient reveal. Here's an example of that in freeze-frame:💡 Context
Original request was to "remove the ghosting effect of the layered text in the Motion Text Component". With some initial testing, we found that the ghosting effect was being caused by letter-spacing differences in the pseudo-element and the actual text characters, caused by using
display:inline-blockon the characters.In addition to that issue, we found that the timing for the first letter of each word was causing the animation to be less smooth than it could be for the
gradient-invariant. See the description, jira ticket, and examples below for more details.📝 Checklist
For all PRs:
For all Vue changes:
./scripts/dialtone-vue-sync.shscript. Read docs here: Dialtone Vue Sync ScriptFor all CSS changes:
🔮 Next Steps
Test in more product contexts.
📷 Screenshots / GIFs
502751701-35c2fdd1-487a-4968-995b-35485b012f9f.1.mov
Progress
Before:
Screen.Recording.2025-12-18.at.1.14.25.PM.mov
Screen.Recording.2025-12-18.at.1.15.13.PM.mov
After:
Screen.Recording.2025-12-29.at.3.47.55.PM.mov
Screen.Recording.2025-12-18.at.1.15.45.PM.mov
🔗 Sources