#slider {
   background: #000;
   border: 1px solid #00f;
   box-shadow: 1px 1px 5px rgba(0,0,0,0.7);
   height: 240px;
   width: 240px;
   margin: 10px auto 0;
   margin-left:	5px;
   overflow: visible;
   position: relative;
   float:	right;
   
}

#mask {
   overflow: hidden;
   height: 240px;
}

#slider ul {
   margin: 0;
   padding: 0;
   position: relative;
}

#slider li {
   width: 240px;  /* Width Image */
   height: 240px; /* Height Image */
   position: absolute;
   top: -245px; /* Original Position - Outside of the Slider */
   list-style: none;
}

/*
.shadow {
	-webkit-box-shadow: 	10px 10px 0px 0px rgba(0, 0, 0, 1);
	-moz-box-shadow:    	10px 10px 0px 0px rgba(0, 0, 0, 1);
	box-shadow:         	10px 10px 0px 0px rgba(0, 0, 0, 1);
}
*/

.radius {
	border-radius:			10px;
    -moz-border-radius:		10px;
    -webkit-border-radius:	10px;
}

#slider li.firstanimation {
   animation: cycle 33s linear infinite;
}

#slider li.secondanimation {
   animation: cycletwo 33s linear infinite;
}

#slider li.thirdanimation {
   animation: cyclethree 33s linear infinite;
}

#slider li.fourthanimation {
   animation: cyclefour 33s linear infinite;
}

#slider li.fifthanimation {
   animation: cyclefive 33s linear infinite;
}

#slider li.sixthanimation {
   animation: cyclesix 33s linear infinite;
}

/* ANIMATION */

@keyframes cycle {
   0%  { top: 0px; left: 0px; } /* When you start the slide, the first image is already visible */
   3%  { top: 0px; left: 0px; } /* Original Position */
   15% { top: 0px; left: 0px; opacity:1; z-index:0; } /* From 4% to 16 % = for 3 seconds the image is visible */
   18% { top: 0px; left: 245px; opacity: 0; z-index: 0; } /* From 16% to 20% = for 1 second exit image */
   19% { top: -245px; left: 0px; opacity: 0; z-index: -1; } /* Return to Original Position */
   20% { top: -245px; left: 0px; opacity: 0; z-index: 0; }
   97% { top: -245px; left: 0px; opacity: 0; } /* From 96% to 100% = for 1 second enter image*/
   100%{ top: 0px; left: 0px; opacity: 1; z-index: 0; }
}

@keyframes cycletwo {
   0%  { top: -245px; left: 0px; opacity: 0; } /* Original Position */
   15% { top: -245px; left: 0px; opacity: 0; }/* Starts moving after 16% to this position */
   18% { top: 0px; left: 0px; opacity: 1; z-index: 0; }
   31% { top: 0px; left: 0px; opacity: 1; z-index: 0; }  /* From 20% to 24% = for 1 second enter image*/
   34% { top: 0px; left: -245px; opacity: 0; z-index: 0; }   /* From 24% to 36 % = for 3 seconds the image is visible */
   35% { top: -245px; left: 0px; opacity: 0; z-index: -1; }   /* Return to Original Position */
   100%{ top: -245px; left: 0px; opacity: 0; z-index: -1; }
}

@keyframes cyclethree {
   0%  { top: -245px; left: 0px; opacity: 0; }
   31% { top: -245px; left: 0px; opacity: 0; }
   34% { top: 0px; left: 0px; opacity: 1; z-index: 0; }
   47% { top: 0px; left: 0px; opacity: 1; z-index: 0; }
   50% { top: 0px; left: 245px; opacity: 0; z-index: 0; }
   51% { top: -245px; left: 0px; opacity: 0; z-index: -1; }
   100%{ top: -245px; left: 0px; opacity: 0; z-index: -1; }
}

@keyframes cyclefour {
   0%  { top: -245px; left: 0px; opacity: 0; }
   47% { top: -245px; left: 0px; opacity: 0; }
   50% { top: 0px; left: 0px; opacity: 1; z-index: 0; }
   63% { top: 0px; left: 0px; opacity: 1; z-index: 0; }
   66% { top: 0px; left: -245px; opacity: 0; z-index: 0; }
   67% { top: -245px; left: 0px; opacity: 0; z-index: -1; }
   100%{ top: -245px; left: 0px; opacity: 0; z-index: -1; }
}

@keyframes cyclefive {
   0%  { top: -245px; left: 0px; opacity: 0; }
   63% { top: -245px; left: 0px; opacity: 0; }
   66% { top: 0px; left: 0px; opacity: 1; z-index: 0; }
   79% { top: 0px; left: 0px; opacity: 1; z-index: 0; }
   82% { top: -245px; left: 0px; opacity: 0; z-index: 0; }
   83% { top: -245px; left: 0px; opacity: 0; z-index: -1; }
   100%{ top: -245px; left: 0px; opacity: 0; z-index: -1; }
}

@keyframes cyclesix {
   0%  { top: -245px; left: 0px; opacity: 0; }
   79% { top: -245px; left: 0px; opacity: 0; }
   82% { top: 0px; left: 0px; opacity: 1; z-index: 0; }
   96% { top: 0px; left: 0px; opacity: 1; z-index: 0; }
   99% { top: -245px; left: 0px; opacity: 0; z-index: 0; }
  100% { top: -245px; opacity: 0; z-index: -1; }
}

/* PROGRESS BAR */

.progress-bar {
   position: relative;
   top: -5px;
   width: 245px;
   height: 5px;
   background: #ff0;
   animation: fullexpand 33s ease-out infinite;
}

/* ANIMATION BAR */

@keyframes fullexpand {
   /* In these keyframes, the progress-bar is stationary */
   0%, 14%, 30%, 46%, 62%, 78% { width: 0%; opacity: 0; }

   /* In these keyframes, the progress-bar starts to come alive */
   3%, 18%, 34%, 50%, 66%, 82% { width: 0%; opacity: 0.3; }

   /* In these keyframes, the progress-bar moves forward for 3 seconds */
   15%, 31%, 47%, 63%, 79%, 96% { width: 100%; opacity: 1; }

   /* In these keyframes, the progress-bar has finished his path */
   16%, 32%, 48%, 64%, 80%, 97% { width: 100%; opacity: 0.3; } 

   /* In these keyframes, the progress-bar will disappear and then resume the cycle */
   17%, 33%, 49%, 65%, 81%, 98% { width: 100%; opacity: 0; }
}

#slider .tooltip {
   background: rgba(0,0,0,0.7);
   width: 200px;
   height: 60px;
   position: relative;
   bottom: 75px;
   left: -240px;
}

#slider .tooltip h1 {
   color: #fff;
   font-size: 24px;
   font-weight: 200;
   line-height: 60px;
   padding: 0 0 0 10px;
}

#slider: hover li,
#slider: hover .progress-bar {
   animation-play-state: paused;
}

