Linear gradient basic

A basic gradient may look boring at first. But we can create many useful effects with gradients.

Code example link:

Code snippets


<div class="demo">
  Hello Gradient


.demo {
  background: linear-gradient(gold, orange);

.demo {
  width: 200px;
  height: 50px;
  border-radius: 50px;
  line-height: 50px;
  text-align: center;
  color: white;
  font-weight: bold;

How it works

The most basic usage of gradient is to have two colors that one color blends into the other color.

When to use this effects?

[Work in Progress]

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.