Nowadays you can see nice tricks like text gradient in many places... but? Have you ever wondered how they are made? Let me teach you today.
.text-gradient { background: linear-gradient(-25deg, #5662f6 0%, #7fffd4 100%); color: transparent; background-clip: text; }
See here first we have given a gradient to the background of the text. Then we will make the text color TRANSPARENT so that it is not visible.
After that we will use the background-clip property to make the text so that the color of the background is changed to the color of the text.
If you want to know 4 more such tricks, click on the image below?
Disclaimer: All resources provided are partly from the Internet. If there is any infringement of your copyright or other rights and interests, please explain the detailed reasons and provide proof of copyright or rights and interests and then send it to the email: [email protected] We will handle it for you as soon as possible.
Copyright© 2022 湘ICP备2022001581号-3