color

In this example below you will see how to do a color with some HTML / CSS and Javascript

Thumbnail
This awesome code was written by benoitwimart, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright benoitwimart ©
  • HTML
  • CSS
  • JavaScript
    <div class="black"></div>
<div class="orange"></div>
<div class="orange-name"></div>

<div class="black-alpha"></div>
<div class="orange-alpha"></div>

/*Downloaded from https://www.codeseek.co/benoitwimart/color-PzvxLJ */
    div {
  width: 50px;
  height: 50px;
  display:inline-block;
}

.black {
  background:black;
  background: #000;
  background: #000000;
  background: rgb(0, 0, 0);
  background: rgba(0, 0, 0, 1);
  background: hsl(0, 0, 0);
  background: hsla(0, 0, 0, 1);
}

.orange {
  background: orange;
  background: #f60;
  background: #ff6600;
  background: rgb(255, 102, 0);
  background: rgba(255, 102, 0, 1);
  background: hsl(24,100,50);
  background: hsla(24, 100, 50, 1);
}
.orange-name{
  background:orange;
}

.black-alpha {
  background: rgba(0, 0, 0, .5);
  background: hsla(0, 0, 0, .5);
}

.orange-alpha {
  background: rgba(255, 102, 0, .5);
  background: hsla(24, 100, 50, .5);
}


/*Downloaded from https://www.codeseek.co/benoitwimart/color-PzvxLJ */
    

Comments