How to animate a background using text lines with the Typewriter animation
-
Hello Armin,
First of all, thank you for the new features in Layhtheme: they’re brilliant.
My question today concerns the coloured lines animation that appears behind the ‘typewriter’ animation applied to the text on my homepage.
My problem is this: I’d like to place a video or a photo behind the text on my homepage whilst applying the typewriter animation to the text, but the issue is that the text wouldn’t be very legible. That’s why I’d like to add a coloured background to the typewriter animation, with lines appearing behind the letters of the text at the same time as the letters themselves.
I’ve tried modifying the CSS code to add this to the animation module, but it isn’t working properly.
How can I go about doing this?
I’ve attached a few example images to illustrate what I mean, as well as a link to my homepage with the animated text.

Thanks in advance,
Have a nice day,
Antoine -
thanks a lot.
So what you can do is you go to Text Formats and create a character or a headline text format, and in the Decoration tab, enable Background. It kind of looks like this:

Then apply that format to your text. You may want to select your text in the text editor first and click the clear formatting button so we make sure that this character or headline format that you apply is the only one that we apply, the only text format that we apply.
The clear formatting button is the button with the eraser icon.
Okay, so now you apply this new format that has the background color.
And then with the next Lay Theme update, the animation will work as you intend it to, because right now what you will see is that the background color of the text will simply just be already visible. Only the text will animate in on top of that, but with the next Lay Theme update it will work as you wanted. Have a great day!
-
Hi Armin,
thank you for your quick reply.OK, I see – I hadn’t thought of that solution with the text style; thank you.
I’ve carried out all the settings and steps you told me to, as well as the latest update.
Unfortunately, I’m still having two problems: I can’t centre my text with a background font (the text style doesn’t seem to support it), and the text animation with the background isn’t working properly. I’ve included a link to my test here so you can see for yourself.
Thanks for your help!
Antoine
For paid 1-on-1 Lay Theme Coaching, contact Audrey (audrey@cyberslayers.work) or me (info@laytheme.com).
We also code custom websites or bespoke Lay features. Drop me a line at info@laytheme.com or check out my work at arminunruh.com.
Want to support my work? paypal.me/arminunruh
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it
