Slide with CSS
<style>
.testimonial{ width:357px; height:137px; margin:0 auto; background:url(commentbg.png)}
.testimonialbdy{ color: #FFFFFF;
font-size: 14px;
height: 100px;
margin-bottom: 0;
margin-left: auto;
margin-right: auto;
margin-top: 3px;
overflow-x: hidden;
overflow-y: hidden;
padding-top: 9px;
text-align: left;
width: 275px;}
.names{ width:210px; text-align:right; font-size:15px; color:#4467b3; font-style:italic;}
.chan{
-webkit-animation: color-change 10s infinite;
-moz-animation: color-change 10s infinite;
-o-animation: color-change 10s infinite;
-ms-animation: color-change 10s infinite;
animation: color-change 10s infinite;
}
@-webkit-keyframes color-change {
0% { color: red; }
50% { color: #000; }
100% { color: red; }
}
@-moz-keyframes color-change {
0% { color: red; }
50% { color:#000; }
100% { color: red; }
}
@-ms-keyframes color-change {
0% { color: red; }
50% { color: #000; }
100% { color: red; }
}
@-o-keyframes color-change {
0% { color: red; }
50% { color: #000; }
100% { color: red; }
}
@keyframes color-change {
0% { color: red; }
50% { color: #000; }
100% { color: red; }
}
#slider {
width:275px;
height:200px;
margin:40px auto 0;
overflow:visible;
-moz-transition:all 5s ease-in;
-webkit-transition:all 5s ease-in;
-o-transition:all 5s ease-in;
position:relative;
transform:rotate(0deg);
-ms-transform:rotate(0deg);
-moz-transform:rotate(0deg);
-webkit-transform:rotate(0deg);
-o-transform:rotate(0deg);
}
#mask {
overflow:hidden;
}
#pause {
width:275px;
height:200px;
position:absolute;
top:0;
opacity:0;
background-position:566px 10px;
background-repeat:no-repeat;
pointer-events:none;
-moz-transition:all 150ms ease-in;
-webkit-transition:all 150ms ease-in;
-o-transition:all 150ms ease-in;
}
#progress {
width:1px;
height:1px;
background-color:#ffd000;
-moz-animation:progress 18s infinite;
-webkit-animation:progress 18s infinite;
position:relative;
top:-1px;
-moz-transition:all 150ms ease-in;
-webkit-transition:all 150ms ease-in;
-o-transition:all 150ms ease-in;
}
#overlay {
width:275px;
height:200px;
position:absolute;
top:0;
background-position:center;
background-repeat:no-repeat;
pointer-events:none;
-moz-transition:all 150ms ease-in;
-webkit-transition:all 150ms ease-in;
-o-transition:all 150ms ease-in;
opacity:0.5;
-moz-animation:overlay-fade 18s infinite;
-webkit-animation:overlay-fade 18s infinite;
}
#slider ul {
width:2400px;
list-style:none;
padding:0;
margin:0;
-moz-animation:slide-animation 18s infinite;
-webkit-animation:slide-animation 18s infinite;
position:relative;
left:0px;
}
#slider li {
display:inline;
width:275px;
height:200px;
margin:0;
padding:0;
float:left;
position:relative;
background-position:50% 50%;
background-repeat:no-repeat;
}
@-webkit-keyframes slide-animation {
0% {opacity:0;}
2% {opacity:1;}
20% {left:0px; opacity:1;}
22.5% {opacity:0.6;}
25% {left:-275px; opacity:1;}
45% {left:-275px; opacity:1;}
47.5% {opacity:0.6;}
50% {left:-550px; opacity:1;}
70% {left:-550px; opacity:1;}
72.5% {opacity:0.6;}
75% {left:-825px; opacity:1;}
95% {opacity:1;}
98% {left:-825px; opacity:0;}
100% {left:0px; opacity:0;}
}
@-moz-keyframes slide-animation {
0% {opacity:0;}
2% {opacity:1;}
20% {left:0px; opacity:1;}
22.5% {opacity:0.6;}
25% {left:-275px; opacity:1;}
45% {left:-275px; opacity:1;}
47.5% {opacity:0.6;}
50% {left:-550px; opacity:1;}
70% {left:-550px; opacity:1;}
72.5% {opacity:0.6;}
75% {left:-825px; opacity:1;}
95% {opacity:1;}
98% {left:-825px; opacity:0;}
100% {left:0px; opacity:0;}
}
@-webkit-keyframes progress {
0% {width:0px; opacity:0;}
2% {width:0px; opacity:1;}
20% {width:275px; opacity:1;}
22.5% {width:275px; opacity:0;}
22.59% {width:0px;}
25% {width:0px; opacity:1;}
45% {width:275px; opacity:1;}
47.5% {width:275px; opacity:0;}
47.59% {width:0px;}
50% {width:0px; opacity:1;}
70% {width:275px; opacity:1;}
72.5% {width:275px; opacity:0;}
72.59% {width:0px;}
75% {width:0px; opacity:1;}
95% {width:275px; opacity:1;}
98% {width:275px; opacity:0;}
100% {width:0px; opacity:0;}
}
@-moz-keyframes progress {
0% {width:0px; opacity:0;}
2% {width:0px; opacity:1;}
20% {width:275px; opacity:1;}
22.5% {width:275px; opacity:0;}
22.59% {width:0px;}
25% {width:0px; opacity:1;}
45% {width:275px; opacity:1;}
47.5% {width:275px; opacity:0;}
47.59% {width:0px;}
50% {width:0px; opacity:1;}
70% {width:275px; opacity:1;}
72.5% {width:275px; opacity:0;}
72.59% {width:0px;}
75% {width:0px; opacity:1;}
95% {width:275px; opacity:1;}
98% {width:275px; opacity:0;}
100% {width:0px; opacity:0;}
}
@-webkit-keyframes rotatey {
0% {transform:rotate(0deg); -ms-transform:rotate(0deg); -moz-transform:rotate(0deg); -webkit-transform:rotate(0deg); -o-transform:rotate(0deg);}
25% {transform:rotate(1deg); -ms-transform:rotate(1deg); -moz-transform:rotate(1deg); -webkit-transform:rotate(1deg); -o-transform:rotate(1deg);}
50% {transform:rotate(-1deg); -ms-transform:rotate(-1deg); -moz-transform:rotate(-1deg); -webkit-transform:rotate(-1deg); -o-transform:rotate(-1deg);}
100% {transform:rotate(0deg); -ms-transform:rotate(0deg); -moz-transform:rotate(0deg); -webkit-transform:rotate(0deg); -o-transform:rotate(0deg);}
}
@-moz-keyframes rotatey {
0% {transform:rotate(0deg); -ms-transform:rotate(0deg); -moz-transform:rotate(0deg); -webkit-transform:rotate(0deg); -o-transform:rotate(0deg);}
25% {transform:rotate(1deg); -ms-transform:rotate(1deg); -moz-transform:rotate(1deg); -webkit-transform:rotate(1deg); -o-transform:rotate(1deg);}
50% {transform:rotate(-1deg); -ms-transform:rotate(-1deg); -moz-transform:rotate(-1deg); -webkit-transform:rotate(-1deg); -o-transform:rotate(-1deg);}
100% {transform:rotate(0deg); -ms-transform:rotate(0deg); -moz-transform:rotate(0deg); -webkit-transform:rotate(0deg); -o-transform:rotate(0deg);}
}
@-webkit-keyframes overlay-fade {
0% {opacity:0;}
2% {opacity:0.5;}
95% {opacity:0.5;}
98% {opacity:0;}
100% {opacity:0;}
}
@-moz-keyframes overlay-fade {
0% {opacity:0;}
2% {opacity:0.5;}
95% {opacity:0.5;}
98% {opacity:0;}
100% {opacity:0;}
}
</style>
<div class="testimonial">
<div id="slider-shadow">
<div id="slider">
<div id="mask">
<ul>
<li>
<div class="testimonialbdy">My credit was horrible after my divorce.
MacPhee Ford worked with me to arrange
an auto loan when everybody else
declined me! Thanks MacPhee Ford!</div><div class="names">Bernice Fitz-Gibbon<br />
Halifax, NS</div>
</li>
<li>
<div class="testimonialbdy">My credit was horrible after my divorce.
MacPhee Ford worked with me to arrange
an auto loan when everybody else
declined me! Thanks MacPhee Ford!</div><div class="names">Bernice Fitz-Gibbon<br />
Halifax, sd</div>
</li>
<li>
<div class="testimonialbdy">My credit was horrible after my divorce.
MacPhee Ford worked with me to arrange
an auto loan when everybody else
declined me! Thanks MacPhee Ford!</div><div class="names">Bernice Fitz-Gibbon<br />
Halifax, NS</div>
</li>
<li>
<div class="testimonialbdy">My credit was horrible after my divorce.
MacPhee Ford worked with me to arrange
an auto loan when everybody else
declined me! Thanks MacPhee Ford!</div><div class="names">Bernice Fitz-Gibbon<br />
Halifax, NS</div>
</li>
<li>
<div class="testimonialbdy">My credit was horrible after my divorce.
MacPhee Ford worked with me to arrange
an auto loan when everybody else
declined me! Thanks MacPhee Ford!</div><div class="names">Bernice Fitz-Gibbon<br />
Halifax, NS</div>
</li>
</ul>
</div>
</div>
</div>
</div>
Comments 3