body {
	width: 300px;
	height: 250px;
	overflow: hidden;
	cursor: pointer;
}

.container {
	position: absolute;
	width: 300px;
	height: 250px;
	z-index: 20;
	background: #fff;
}

.container > p {
	width: 100%;
	height: 100%;
	position: absolute;
	-moz-background-size: 300px;
	  -o-background-size: 300px;
	     background-size: 300px;
	background-repeat: no-repeat;
	opacity: 0;
}

.container > p:nth-of-type(1) {
	opacity: 1;
	background-image: url('frame1.jpg');
	/* @keyframes duration | timing-function | delay | iteration-count | direction | fill-mode | play-state | name */
}
.container > p:nth-of-type(2) {
	background-image: url('frame2.jpg');
	-webkit-animation: 0.5s linear 2s forwards fadeIn;
	   -moz-animation: 0.5s linear 2s forwards fadeIn;
	     -o-animation: 0.5s linear 2s forwards fadeIn;
	        animation: 0.5s linear 2s forwards fadeIn;
}
.container > p:nth-of-type(3) {
	background-image: url('frame3.jpg');
	-webkit-animation: 0.5s linear 5s forwards fadeIn;
	   -moz-animation: 0.5s linear 5s forwards fadeIn;
	     -o-animation: 0.5s linear 5s forwards fadeIn;
	        animation: 0.5s linear 5s forwards fadeIn;
}
.container > p:nth-of-type(4) {
	background-image: url('frame4.jpg');
	-webkit-animation: 0.5s linear 8s forwards fadeIn;
	   -moz-animation: 0.5s linear 8s forwards fadeIn;
	     -o-animation: 0.5s linear 8s forwards fadeIn;
	        animation: 0.5s linear 8s forwards fadeIn;
}
.container > p:nth-of-type(5) {
	opacity: 0;
	-webkit-animation: 0.5s linear 11s forwards fadeIn;
	   -moz-animation: 0.5s linear 11s forwards fadeIn;
	     -o-animation: 0.5s linear 11s forwards fadeIn;
	        animation: 0.5s linear 11s forwards fadeIn;
}
.main, .hover {
	opacity: 0;
	width: 100%;
	height: 100%;
	position: absolute;
	-moz-background-size: 300px;
	  -o-background-size: 300px;
	     background-size: 300px;
	background-repeat: no-repeat;
}

.main {
	background-image: url('frame5.jpg');
	-webkit-animation: 0.5s linear 11s forwards fadeIn;
	   -moz-animation: 0.5s linear 11s forwards fadeIn;
	     -o-animation: 0.5s linear 11s forwards fadeIn;
	        animation: 0.5s linear 11s forwards fadeIn;
}
.hover {
	opacity: 0;
	visibility: hidden;
	background-image: url('frame5-hover.jpg');
	-webkit-animation: 0.5s linear 11s forwards displayIn;
	   -moz-animation: 0.5s linear 11s forwards displayIn;
	     -o-animation: 0.5s linear 11s forwards displayIn;
	        animation: 0.5s linear 11s forwards displayIn;
	-webkit-transition: all 0.5s ease-in-out;
	-o-transition: all 0.5s ease-in-out;
	-moz-transition: all 0.5s ease-in-out;
	transition: all 0.5s ease-in-out;
}

.container:hover .hover {
	opacity: 1;
}

a {
	color: inherit;
	text-decoration: inherit;
}

@-webkit-keyframes fadeIn {
	0% {
		opacity: 0;
	}
	100% {
		opacity: 1;
	}
}

@-moz-keyframes fadeIn {
	0% {
		opacity: 0;
	}
	100% {
		opacity: 1;
	}
}

@-o-keyframes fadeIn {
	0% {
		opacity: 0;
	}
	100% {
		opacity: 1;
	}
}

@keyframes fadeIn {
	0% {
		opacity: 0;
	}
	100% {
		opacity: 1;
	}
}
@-webkit-keyframes displayIn {
	0% {
		visibility: hidden;
	}
	100% {
		visibility: visible;
	}
}
@-moz-keyframes displayIn {
	0% {
		visibility: hidden;
	}
	100% {
		visibility: visible;
	}
}
@-o-keyframes displayIn {
	0% {
		visibility: hidden;
	}
	100% {
		visibility: visible;
	}
}
@keyframes displayIn {
	0% {
		visibility: hidden;
	}
	100% {
		visibility: visible;
	}
}