JSFiddle - React, Tailwind, and code Playground

by w3cplus

HTML

<div class="butterfly" ></div>

<div class="butterfly2" ></div>

CSS

.butterfly2,    
.butterfly {
    height:150px;
    width: 150px;
    top: 50px;
    left: 50px;
    position:absolute;
    background: transparent url("http://www.w3cplus.com/sites/default/files/butterfly.png") 50% no-repeat;
    -webkit-animation: 0.5s ease 0s flitter infinite;
    -moz-animation: 0.5s ease 0s flitter infinite;
}

.butterfly2 {
  left: 200px;
  background: transparent url("http://www.w3cplus.com/sites/default/files/butterfly2.png") 50% no-repeat;
    -webkit-animation: 0.5s ease 0s flitter2 infinite;
    -moz-animation: 0.5s ease 0s flitter2 infinite;
}


.exampleDiv:hover .butterfly {
    -webkit-animation-play-state:paused;
    -moz-animation-play-state:paused;
    animation-play-state:paused;    
}

@-webkit-keyframes flitter {
0%{-webkit-transform: scale(1,1);}
100% {-webkit-transform: scale(0.2,1);}
}


@-moz-keyframes flitter {
0%{-moz-transform: scale(1,1);}
100% {-moz-transform: scale(0.2,1);}
}

@-webkit-keyframes flitter2 {
0%{-webkit-transform: scale(1,1);}
100% {-webkit-transform: scale(1,0.2);}
}


@-moz-keyframes flitter2 {
0%{-moz-transform: scale(1,1);}
100% {-moz-transform: scale(1,0.2);}
}
    /*
@-webkit-keyframes rainbow {

0% {background-color: #FF0000;}
10% {background-color: #FF8000;}
20% {background-color: #FFFF00;}
30% {background-color: #80FF00;}
40% {background-color: #00FF00;}
50% {background-color: #00FF80;}
60% {background-color: #00FFFF;}
70% {background-color: #0080FF;}
80% {background-color: #0000FF;}
90% {background-color: #8000FF;}
100% {background-color: #FF0080;}
}
@-webkit-keyframes flapping {    
    0% {background-size:100px 100px;}
    100% {background-size: 20px 100px;}
}



@-webkit-keyframes rainbowdimmer {
0% {background-color: #FF0000;
opacity: 1;}
20% {background-color: #FFFF00;}
40% {background-color: #00FF00;}
50% {opacity: 0;}
60% {background-color: #00FFFF;}
80% {background-color: #0000FF;}
100% {background-color: #FF0080;
opacity: 1;}
}

@-webkit-keyframes movement {
    0%, 100% {
        
  ...