Home >Web Front-end >CSS Tutorial >How To Add Animated Gradient Text in Elementor?
Elevate your website's design with captivating animated gradient text! This simple yet effective technique adds a modern and engaging touch to your headlines. This guide shows you how to easily achieve this using Elementor and custom CSS.
Note: This tutorial requires the Master Addons plugin for Elementor (the free version doesn't include custom CSS). Download it here: https://www.php.cn/link/b3633b88d30579ff9c2e9154b0c79521
Step 1: Adding the Headline
Begin by opening your Elementor editor and adding a heading element to your page. This will be the text you'll apply the gradient animation to.
Step 2: Styling Your Headline
Next, personalize your headline's typography. Adjust the font, size, weight, and other stylistic elements to match your website's design.
Step 3: Implementing Custom CSS
The animation magic happens with custom CSS. Paste the following code into Elementor's Custom CSS section:
<code class="language-css">selector { background: linear-gradient(90deg, rgba(176,177,161,1) 0%, rgba(197,204,106,1) 42%, rgba(91,183,188,1) 74%, rgba(68,0,255,1) 100%); background-size: 400% 400%; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: gradient-animation 5s ease infinite; } @keyframes gradient-animation { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }</code>
Remember to replace selector
with the appropriate CSS selector for your heading element (e.g., .elementor-heading-title
).
Feel free to experiment with the rgba
color values to create your own unique gradient.
Step 4: Preview and Publish
Update your page and preview the results! Your headline should now boast a stunning animated gradient.
By following these steps, you can effortlessly add stylish animated gradient text to your Elementor website. This simple technique significantly enhances visual appeal and helps your content stand out. Try it today and transform your website's look!
The above is the detailed content of How To Add Animated Gradient Text in Elementor?. For more information, please follow other related articles on the PHP Chinese website!