"If a worker wants to do his job well, he must first sharpen his tools." - Confucius, "The Analects of Confucius. Lu Linggong"
Front page > Programming > Apply gradient to TEXT using CSS.

Apply gradient to TEXT using CSS.

Published on 2024-11-08
Browse:987

Text Gradient

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?

TEXT এ গ্র্যাডিয়েন্ট লাগান CSS এর মাধ্যমে ।

Release Statement This article is reproduced at: https://dev.to/shahriarcode/text-e-gryaaddiyyentt-laagaan-css-er-maadhyme--1pm6?1 If there is any infringement, please contact [email protected] to delete it
Latest tutorial More>

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