83
0

Rainbow Text Using CSS

83
0
    <div class="container">
        <h1 class="rainbow-text">Rainbow Text</h1>
    </div>
.rainbow-text{
    background-image: linear-gradient(to left, #a701a7, indigo, blue, green, yellow, orange, red);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    width: fit-content;
}

Leave a Reply

Your email address will not be published.