Text blinking after translation
AlkoKod opened this issue · 2 comments
Description
Hello, I have tried to implement this awesome script on hero section of my company website. It works very nice! However, I am using automatic translation via DeepL API and when I switch the language, the animated text starts to blinking. Can I repair this behavior somehow?
Demo
It can be seen here: https://www.complianceteam.cz/en/
Steps to Reproduce
- Embed script to WordPress theme
- Make it working
- Install Translatepress plugin with DeepL integration
- Open translation
Expected behavior: Should work normally like on Czech version https://www.complianceteam.cz/
Actual behavior: Text blinking https://www.complianceteam.cz/en/
Reproduces how often: 100%
Since the translation library alters content on the page, including the typed.js content, I'm not really sure how to integrate it and keep control of the typing animation. If you have some kind of hook that fires after the translation finishes, you may be able to reset it like typed.reset()
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
