Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*-----------------[SLIDER START]------------------------*/
- #slider {
- width:640px;
- height:320px;
- margin:0 auto;
- background:#fff;
- overflow:visible;
- -moz-transition:all 150ms ease-in;
- -webkit-transition:all 150ms ease-in;
- -o-transition:all 150ms ease-in;
- position:relative;
- transform:rotate(0deg);
- -ms-transform:rotate(0deg);
- -moz-transform:rotate(0deg);
- -webkit-transform:rotate(0deg);
- -o-transform:rotate(0deg);
- }
- #slider-shadow {
- width:640px;
- height:320px;
- margin:0 auto;
- position:relative;
- background:#fff;
- box-shadow:0 0 5px 0 rgba(0,0,0,0.2);
- -moz-box-shadow:0 0 5px 0 rgba(0,0,0,0.2);
- -webkit-box-shadow:0 0 5px 0 rgba(0,0,0,0.2);
- }
- #slider-shadow:before,#slider-shadow:after {
- content:'';
- position:absolute;
- width:60%;
- height:20px;
- -webkit-box-shadow:0 8px 16px rgba(0,0,0,0.5);
- -moz-box-shadow:0 8px 16px rgba(0,0,0,0.5);
- -ms-box-shadow:0 8px 16px rgba(0,0,0,0.5);
- -o-box-shadow:0 8px 16px rgba(0,0,0,0.5);
- box-shadow:0 8px 16px rgba(0,0,0,0.5);
- -webkit-transform:rotate(-4deg) skew(-10deg);
- -moz-transform:rotate(-4deg) skew(-10deg);
- -o-transform:rotate(-4deg) skew(-10deg);
- -ms-transform:rotate(-4deg) skew(-10deg);
- transform:rotate(-4deg) skew(-10deg);
- left:10px;
- bottom:13px;
- z-index:-1;
- }
- #slider-shadow:after {
- left:auto;
- right:10px;
- -webkit-transform:rotate(4deg) skew(10deg);
- -moz-transform:rotate(4deg) skew(10deg);
- -o-transform:rotate(4deg) skew(10deg);
- -ms-transform:rotate(4deg) skew(10deg);
- transform:rotate(4deg) skew(10deg);
- }
- #mask {
- overflow:hidden;
- }
- #slider-shadow:hover {
- background-color:#fff;
- -webkit-animation:rotatey 400ms ease-out;
- -moz-animation:rotatey 400ms ease-out;
- }
- #slider:hover #pause {
- opacity:.8;
- }
- #slider:hover #progress {
- background-color:rgba(255,255,255,0.0);
- }
- #slider:hover ul,#slider:hover #progress,#slider:hover #overlay {
- -moz-animation-play-state:paused;
- -webkit-animation-play-state:paused;
- }
- #pause {
- width:640px;
- height:320px;
- position:absolute;
- top:0;
- opacity:0;
- background-image:url(http://s27.postimg.org/ryq4pxayn/gtk_media_pause.png);
- 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;
- }
- #overlay {
- width:640px;
- height:320px;
- position:absolute;
- top:0;
- background-image:url(http://w.noimage.png);
- 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:.5;
- -moz-animation:overlay-fade 18s infinite;
- -webkit-animation:overlay-fade 18s infinite;
- }
- #progress {
- width:1px;
- height:3px;
- background:none repeat scroll 0 0 rgba(0,136,204,0.8);
- -moz-animation:progress 18s infinite;
- -webkit-animation:progress 18s infinite;
- position:relative;
- top:-3px;
- -moz-transition:all 150ms ease-in;
- -webkit-transition:all 150ms ease-in;
- -o-transition:all 150ms ease-in;
- }
- #slider ul {
- width:2560px;
- list-style:none;
- padding:0;
- margin:0;
- -moz-animation:slide-animation 18s infinite;
- -webkit-animation:slide-animation 18s infinite;
- position:relative;
- left:0;
- }
- #slider li {
- display:inline;
- width:640px;
- height:320px;
- margin:0;
- padding:0;
- float:left;
- position:relative;
- background-image:url(http://i62.tinypic.com/2m7cie1.gif);
- background-position:50% 50%;
- background-repeat:no-repeat;
- }
- #slider li:last-of-type {
- background-color:#362c30;
- }
- #slider li a {
- display:block;
- text-decoration:none;
- }
- #slider li .slider-span {
- display:block;
- width:100%;
- padding:15px 20px;
- position:absolute;
- bottom:0;
- left:0;
- background-color:rgba(0,0,0,0.4);
- text-shadow:1px 1px 1px #362c30;
- pointer-events:none;
- text-align:left;
- }
- @-webkit-keyframes slide-animation {
- 0% {
- opacity:0;
- }
- 2% {
- opacity:1;
- }
- 20% {
- left:0;
- opacity:1;
- }
- 22.5% {
- opacity:.6;
- }
- 25% {
- left:-640px;
- opacity:1;
- }
- 45% {
- left:-640px;
- opacity:1;
- }
- 47.5% {
- opacity:.6;
- }
- 50% {
- left:-1280px;
- opacity:1;
- }
- 70% {
- left:-1280px;
- opacity:1;
- }
- 72.5% {
- opacity:.6;
- }
- 75% {
- left:-1920px;
- opacity:1;
- }
- 95% {
- opacity:1;
- }
- 98% {
- left:-1920px;
- opacity:0;
- }
- 100% {
- left:0;
- opacity:0;
- }
- }
- @-moz-keyframes slide-animation {
- 0% {
- opacity:0;
- }
- 2% {
- opacity:1;
- }
- 20% {
- left:0;
- opacity:1;
- }
- 22.5% {
- opacity:.6;
- }
- 25% {
- left:-640px;
- opacity:1;
- }
- 45% {
- left:-640px;
- opacity:1;
- }
- 47.5% {
- opacity:.6;
- }
- 50% {
- left:-1280px;
- opacity:1;
- }
- 70% {
- left:-1280px;
- opacity:1;
- }
- 72.5% {
- opacity:.6;
- }
- 75% {
- left:-1920px;
- opacity:1;
- }
- 95% {
- opacity:1;
- }
- 98% {
- left:-1920px;
- opacity:0;
- }
- 100% {
- left:0;
- opacity:0;
- }
- }
- @-webkit-keyframes progress {
- 0% {
- width:0;
- opacity:0;
- }
- 2% {
- width:0;
- opacity:1;
- }
- 20% {
- width:640px;
- opacity:1;
- }
- 22.5% {
- width:640px;
- opacity:0;
- }
- 22.59% {
- width:0;
- }
- 25% {
- width:0;
- opacity:1;
- }
- 45% {
- width:640px;
- opacity:1;
- }
- 47.5% {
- width:640px;
- opacity:0;
- }
- 47.59% {
- width:0;
- }
- 50% {
- width:0;
- opacity:1;
- }
- 70% {
- width:640px;
- opacity:1;
- }
- 72.5% {
- width:640px;
- opacity:0;
- }
- 72.59% {
- width:0;
- }
- 75% {
- width:0;
- opacity:1;
- }
- 95% {
- width:640px;
- opacity:1;
- }
- 98% {
- width:640px;
- opacity:0;
- }
- 100% {
- width:0;
- opacity:0;
- }
- }
- @-moz-keyframes progress {
- 0% {
- width:0;
- opacity:0;
- }
- 2% {
- width:0;
- opacity:1;
- }
- 20% {
- width:640px;
- opacity:1;
- }
- 22.5% {
- width:640px;
- opacity:0;
- }
- 22.59% {
- width:0;
- }
- 25% {
- width:0;
- opacity:1;
- }
- 45% {
- width:640px;
- opacity:1;
- }
- 47.5% {
- width:640px;
- opacity:0;
- }
- 47.59% {
- width:0;
- }
- 50% {
- width:0;
- opacity:1;
- }
- 70% {
- width:640px;
- opacity:1;
- }
- 72.5% {
- width:640px;
- opacity:0;
- }
- 72.59% {
- width:0;
- }
- 75% {
- width:0;
- opacity:1;
- }
- 95% {
- width:640px;
- opacity:1;
- }
- 98% {
- width:640px;
- opacity:0;
- }
- 100% {
- width:0;
- 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:.5;
- }
- 95% {
- opacity:.5;
- }
- 98% {
- opacity:0;
- }
- 100% {
- opacity:0;
- }
- }
- @-moz-keyframes overlay-fade {
- 0% {
- opacity:0;
- }
- 2% {
- opacity:.5;
- }
- 95% {
- opacity:.5;
- }
- 98% {
- opacity:0;
- }
- 100% {
- opacity:0;
- }
- }
- #slider ul li .slider-span h2 {
- font-size:24px;
- line-height:24px;
- color:#fff;
- font-weight:normal;
- text-shadow:1px 1px 1px #362c30;
- }
- /*-------------------[SLIDER END]-------------------------*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement