Ecommerce Shopify WordPress Discussion

How do I stop text element below typed text effect from moving on mobile?

I have used the following code in a code element for a text type effect. It works well however on mobile because the typed text moves between 1 and 2 lines upon writing and deleting the text element below constantly moves up and down with it. How can I stop this from happening whilst still maintaining the typed effect on mobile? This is the page <script src=""></script> <div class="autotyping">Those who can, <span class="typing_text"></span></div> <script> //typing text animation script var typed = new Typed(".typing_text", { strings: ["teach", "tutor", "project manage", "design", "engage", "do data", "market", "code", "create", "do admin", "safegaurd", "coach", "do empathy", "communicate", "manage", "do inclusion", ], typeSpeed: 50, backSpeed: 25, loop: true, cursorChar: '|️', }); </script> <style> .autotyping{ font-family: 'Playfair Display', serif; color: #FFF; font-size:4.8em; font-weight: 800; } .autotyping>span{ color: #8a386c; font-size:1.1em; font-weight: 700; } /*Shrinking for tablet*/ @media (min-width: 481px) and (max-width: 768px) { .autotyping{ font-size:2.0em; font-weight: 800; } .autotyping>span{ font-size:1.2em; font-weight: 700; } } /*Shrinking for mobile*/ @media (max-width: 480px) { .autotyping{ font-size:1.9em; font-weight: 800; text-align: center; } .autotyping>span{ font-size:1.1em; font-weight: 700; } } </style> I have been unable to find a solution to this at present.
TurboCommerce make the better internet purchasing globaly

Turbo Multi-language Translator

Make the better internet purchasing globaly

Turbosify SEO Speed Booster

5.0 (7) Free plan available
Get better conversions by improving store loading speed Installed

Turbo Multi-language Chat - AI Customer service in one hand

TurboCommerce make the better internet purchasing globaly
Our products

The help you need, when you need it

App by Turbo Engine

3 apps • 5.0 average rating

Turbosify Speed Booster

5.0 (7)
Get better conversions by optimizing shopify store Google page speed Installed

Turbosify Translator for Wordpress Woocommerce

5.0 (74) Free Wordpress Woocommerce Plugin
Translate your wordpress website to multiple language within 1 click, no configuration needed, no No technical required

Grow your business here

Whether you want to sell products down the street or around the world, we have all the tools you need.