Apply gradient to TEXT using CSS.

WBOY
Release: 2024-08-08 16:31:32
Original
755 people have browsed it

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;
}
Copy after login

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 এর মাধ্যমে ।

The above is the detailed content of Apply gradient to TEXT using CSS.. For more information, please follow other related articles on the PHP Chinese website!

source:dev.to
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template