Saturday, 25 October 2014

CSS3 Keyframes Slideshow

CSS3 Keyframes Slideshow

This is just example on what you can do with keyframes, its not tutorial, if You are not familiar with keyframes animation, CSS as language or HTML, click here : CSS3 Keyframes Full Tutorial  ||  CSS Full Tutorial  ||  HTML Full Tutorial

The below keyframe code is only for Chrome and Safari but you can add support for mozilla, opera and IE by copying the code and adding the -moz-, -ms- and -o- vendor prefixes.


All those strange letters are just links. Dont thing about them.



<title>CSS3 @keyframes slideshow</title>
.slideShow {

width: 400px;

height: 200px;
border: 1px solid #000;
background: url(;
background-repeat: no-repeat;
-webkit-animation: slideShow 15s 1s infinite alternate;
 -moz-animation: slideShow 15s 1s infinite alternate;
-ms-animation: slideShow 15s 1s infinite alternate; 
animation: slideShow 15s 1s infinite alternate;


// Chrome and Safari

@-webkit-keyframes slideShow {

0% {

background-image: url( ;

25% {

background-image: url( ;

50% {

background-image: url( ;

75% {

background-image: url( ;

100% {

background-image: url(;


<div class="slideShow"></div>


No comments:

Post a Comment