JSFiddle - React, Tailwind, and code Playground
HTML
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<div class="photobanner circle-down">
<div class="spinner">
<img class="move" src="http://storyacious.com/wp-content/uploads/2014/02/300x300.gif"/>
</div>
<div class="spinner">
<img class="move" src="http://storyacious.com/wp-content/uploads/2014/02/300x300.gif"/>
</div>
<div class="spinner">
<img class="move" src="http://storyacious.com/wp-content/uploads/2014/02/300x300.gif"/>
</div>
</div>
CSS
.circle-down {
margin-top: 5em;
}
.photobanner {
height: 388px;
width: 100%;
}
.move {
-webkit-animation: bannermove 30s linear infinite;
animation: bannermove 30s linear infinite;
display: inline;
}
.move:hover{
-webkit-animation-play-state: paused;
animation-play-state: paused;
-webkit-transform: scale(1.5);
-moz-transform: scale(1.5);
-o-transform: scale(1.5);
-ms-transform: scale(1.5);
transform: scale(1.5);
cursor: pointer;
box-shadow: 0 0 10px 5px #cb0c2e !important;
}
.spinner {
position: absolute;
left: 500px;
-webkit-animation: bannerscale 30s linear infinite;
animation: bannerscale 30s linear infinite;
}
.spinner:hover{
-webkit-animation-play-state: paused;
animation-play-state: paused;
}
@keyframes bannermove {
0% {transform: translateX(350%);}
50% {transform: translateX(-100%);}
100% {transform: translateX(-550%);}
}
@-webkit-keyframes bannermove {
0% {transform: translateX(350%);}
50% {transform: translateX(-100%);}
100% {transform: translateX(-550%);}
}
@keyframes bannerscale {
0% {transform: scale(0); z-index: 5;}
50% {transform: scale(1); z-index: 50;}
100% {transform: scale(0); z-index: 5;}
}
@-webkit-keyframes bannerscale {
0% {transform: scale(0); z-index: 5;}
50% {transform: scale(1); z-index: 50;}
100% {transform: scale(0); z-index: 5;}
}
.spinner img {
-webkit-transition: all 0.5s ease;
-moz-transition: all 0.5s ease;
-o-transition: all 0.5s ease;
-ms-transition: all 0.5s ease;
transition: all 0.5s ease;
border-radius: 50%;
box-shadow: 0 0 24px -2px #000000;
float: right;
}
JavaScript
$(document).ready(function() {
$(".spinner").hide().each ( function(i) {
$(this).delay(i*1500).fadeIn(1);
});
});