This is the code I have written:
<div class="titlediv" style='background:linear-gradient(90deg, #cc2900 79%, #b3b3b3 21%);'>
<h2> Hello
</div>
<p> My name is Josh and I need Help </p>
<p> My name is Josh and I need Help </p>
(repeated lines omitted for brevity)
<p> My name is Josh and I need Help </p>
<div class="titlediv" style='background:linear-gradient(90deg, #cc2900 79%, #b3b3b3 21%);'>
<h2> Hello
</div>
In this code snippet, there are two <h2>
tags with background colors.
I am looking to create a left-to-right fill animation effect for the background color when it appears on the screen.
If you want to see an example of what I mean, check out this website:
Scroll down on that website to see the IMDB rating section for reference.