Design comparison
SolutionDesign
Solution retrospective
Ignore those button borders.
How to make button text's color transparent ?
Community feedback
- @Yashasvi2704Posted over 3 years ago
Hi Anurag, If I understood it correctly, you want the button's text to be a transparent and the background color should be the color showing up inside the text.
Am I right?
0@exist08Posted over 3 years ago@Yashasvi2704 yeah, how to make text color transparent
0@Yashasvi2704Posted over 3 years ago- First you would want to wrap the button text in a span
<button><span = "bg-clip"></span><button>
2.Then on the
.bg-clip
class.. Set the following properties:background: <color of your choice(can be a linear gradient or whatever)>; -webkit-background-clip: text; color: transparent;
0 - First you would want to wrap the button text in a span
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord