Add a pop of visual interest to your designs with gradient and image text fills.
Catch your site visitors’ attention by using background gradients and image text fills to take your Heading game up a notch. Really wow them with a scroll that reveals your background image through your text’s characters.
In this lesson, you’ll learn how to add a text fills to any text in your project doing the following:
Let’s first add a Heading to our page and set its font to something that’s a heavier weight so we can see our text fill within its characters:
Set a gradient on the Heading:
Read more about background gradients.
Note: Safari interprets (and interpolates) gradients to a transparency as “transparent black”. Therefore, the transparent color will look black for Safari users.
Now for the magic — let’s apply the gradient to just the Heading text:
Let’s add another Heading to our page:
Use a Background image for our text fill:
Read more about background images.
We’ll do the exact same thing we did before to clip our gradient to the text:
Let’s make our text act like a cutout — a window — into our background image. As your visitor scrolls down the page, the Heading text reveals portions of the background image behind it.
There you have it - wow your visitors with visually stunning text!