JSFiddle - React, Tailwind, and code Playground

css3 fades

by Andrew Pougher

HTML

<div class="ap">

</div>

<div class="ap1">

</div>

<div class="ap2">

</div>

<div class="ap3">

</div>

<div class="ap4">

</div>

<div class="ap5">

</div>

<div class="ap6">

</div>

CSS

body {
  height: 100%
}

.ap {
  margin-top: 0;
  margin-bottom: 0;
  margin-right: 0;
  margin-left: 0;
  padding-top: 0;
  padding-bottom: 0;
  padding-right: 0;
  padding-left: 0;
  background: rgba(230, 150, 11, 1);
  background: -moz-linear-gradient(top, rgba(230, 150, 11, 1) 0%, rgba(254, 254, 254, 1) 22%, rgba(254, 254, 254, 1) 100%);
  background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(230, 150, 11, 1)), color-stop(22%, rgba(254, 254, 254, 1)), color-stop(100%, rgba(254, 254, 254, 1)));
  background: -webkit-linear-gradient(top, rgba(230, 150, 11, 1) 0%, rgba(254, 254, 254, 1) 22%, rgba(254, 254, 254, 1) 100%);
  background: -o-linear-gradient(top, rgba(230, 150, 11, 1) 0%, rgba(254, 254, 254, 1) 22%, rgba(254, 254, 254, 1) 100%);
  background: -ms-linear-gradient(top, rgba(230, 150, 11, 1) 0%, rgba(254, 254, 254, 1) 22%, rgba(254, 254, 254, 1) 100%);
  background: linear-gradient(to bottom, rgba(230, 150, 11, 1) 0%, rgba(254, 254, 254, 1) 22%, rgba(254, 254, 254, 1) 100%);
  filter: progid: DXImageTransform.Microsoft.gradient( startColorstr='#4ea5fc', endColorstr='#fefefe', GradientType=0);
  background-repeat: no-repeat;
  height: 30vh
}

.ap1 {
  display: block;
  height: 24vh;
  background-color: #52418f;
  background-color: rgba(82, 65, 143, .97);
  background: -webkit-linear-gradient(left top, rgba(41, 8, 48, .97), rgba(82, 65, 143, .97) 50%, rgba(114, 183, 227, .97));
  background: linear-gradient(to right bottom, rgba(41, 8, 48, .97), rgba(82, 65, 143, .97) 50%, rgba(114, 183, 227, .97));
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .1);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
  padding-top: 49px;
  box-sizing: border-box;
}

.ap2 {
  background-image: -webkit-linear-gradient(287deg, #270530 10%, #196d82 36%, #fff 70%);
  background-image: linear-gradient(163deg, #270530 10%, #196d82 36%, #fff 70%);
  background-size: 100% 1100px;
  background-repeat: no-repeat;
  display: block;
  height: 24vh;
}

.ap3 {
  background:...