DEV Community

Cover image for 2 UX tips for self-typing text effect
Artem
Artem

Posted on

1

2 UX tips for self-typing text effect

Self-typing text effect in interfaces is mainstream, especially after AI bots are becoming more and more popular... |

However, developers can ignore at least two problems that can degrade the user experience.

I give these two tips when implementing this effect:

✍️ 1) If it's fake real-time, add the ability to skip the effect. In 99% cases, a text which should be displayed is already loaded in users browsers before showing. Waiting while the effect will finish can be time-consuming and nerve-wracking. A text should be able to be available immediately, if possible.

This can be done by clicking on the text area or on a special button.

✍️ 2) Not correct auto-translation of such text. Check that a browser translator works correctly, and what code ends up pasted in the HTML? Even ChatGPT can throw an error if you translate the page into a language other than English while printing text.

To solve this problem, you can replace the DOM node after all the text has been shown. Or better customize your tool and printing technique for each character and text.

I solved these problems on my site. You can take a look (actual on April 2024). https://artemshar.space

As for tools, I think there are many ready-made solutions, but I used the https://www.npmjs.com/package/typewriter-effect, which is good and deserves a star.

SurveyJS custom survey software

Build Your Own Forms without Manual Coding

SurveyJS UI libraries let you build a JSON-based form management system that integrates with any backend, giving you full control over your data with no user limits. Includes support for custom question types, skip logic, an integrated CSS editor, PDF export, real-time analytics, and more.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay