JSFiddle - React, Tailwind, and code Playground
by darcyclarke
CSS
body {
}
body:before,
body:after {
content: '';
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
transition: all .3s linear;
-o-transition: all .3s linear;
-moz-transition: all .3s linear;
-webkit-transition: all .3s linear;
}
body:before {
z-index: 200;
width: 50%;
background-color: #65318f;
-webkit-animation: animateBefore 4s;
}
body:after {
z-index: 100;
left: 50%;
width: 50%;
background-color: #9c2a7f;
-webkit-animation: animateAfter 4s;
}
@-webkit-keyframes animateBefore {
0% { width: 50%; }
100% { width: 60%; }
}
@-webkit-keyframes animateAfter {
0% { width: 50%; }
100% { width: 60%; }
}