"3565464"
Bootstrap 3.3.0 Snippet by okebro

<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="description" content="Pure simple css div slider"> <meta name="keywords" content="pure css slider, css div slider, pure css div slider"> <meta name="author" content="Quanton81"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Quanton pure CSS Div Slider</title> </head> <body> <div class="q-slider"> <input name="q-an-n" id="q-sl-0" type="radio" class="q-an sl"> <input name="q-an-n" id="q-sl-1" type="radio" class="q-an sl"> <input name="q-an-n" id="q-sl-2" type="radio" class="q-an sl"> <input name="q-an-n" id="q-pl" type="radio" class="q-an" checked> <input name="q-an-n" id="q-pa-0" type="radio" class="q-an pa"> <input name="q-an-n" id="q-pa-1" type="radio" class="q-an pa"> <input name="q-an-n" id="q-pa-2" type="radio" class="q-an pa"> <ul> <div> <img src="http://placehold.it/600x400/60C5F0/000000?text=Start" style="width: 100%;"> </div> <li class="n-0 q-im"> <img src="http://rumart.weebly.com/files/theme/001.jpg" alt="1° Slider" title="First"> </li> <li class="n-1 q-im"> <img src="http://rumart.weebly.com/files/theme/002.jpg" alt="2° Slider" title="Second"> </li> <li class="n-2 q-im"> <img src="http://rumart.weebly.com/files/theme/003.jpg" alt="3° Slider" title="Third"> </li> </ul> <div class="q-de"> <label class="n-0"> <span class="q-ti"><span class="q-wr">First</span></span> <br><span class="q-de"><span class="q-wr">1° Slider</span></span> </label> <label class="n-1"> <span class="q-ti"><span class="q-wr">Second</span></span> <br><span class="q-de"><span class="q-wr">2° Slider</span></span> </label> <label class="n-2"> <span class="q-ti"><span class="q-wr">Third</span></span> <br><span class="q-de"><span class="q-wr">3° Slider</span></span> </label> </div> <div class="q-arrp"> <label class="n-0" for="q-sl-0"><span><i></i></span></label> <label class="n-1" for="q-sl-1"><span><i></i></span></label> <label class="n-2" for="q-sl-2"><span><i></i></span></label> </div> <div class="q-arrn"> <label class="n-0" for="q-sl-0"><span><i></i></span></label> <label class="n-1" for="q-sl-1"><span><i></i></span></label> <label class="n-2" for="q-sl-2"><span><i></i></span></label> </div> <div class="q-bu"> <label class="n-0" for="q-sl-0"> <span class="q-po"></span> <span class="q-th"><img src="http://placehold.it/100x50/60C5F0/000000?text=First" alt="First" title="First"></span> </label> <label class="n-1" for="q-sl-1"> <span class="q-po"></span> <span class="q-th"><img src="http://placehold.it/100x50/60C5F0/000000?text=Second" alt="Second" title="Second"></span> </label> <label class="n-2" for="q-sl-2"> <span class="q-po"></span> <span class="q-th"><img src="http://placehold.it/100x50/60C5F0/000000?text=Third" alt="Third" title="Third"></span> </label> </div> <div class="q-pl-pa"> <label class="play1" for="q-pl"> <span class="q-po"></span> </label> <label class="pause0" for="q-pa-0"> <span class="q-po"></span> </label> <label class="pause1" for="q-pa-1"> <span class="q-po"></span> </label> <label class="pause2" for="q-pa-2"> <span class="q-po"></span> </label> </div> <div class="q-ge"> <div> <img src="http://placehold.it/600x400/60C5F0/000000?text=Start" alt="Start" title="Start" class="q-fi-im"> <img src="http://rumart.weebly.com/files/theme/001.jpg" alt="First" title="First"> <img src="http://rumart.weebly.com/files/theme/002.jpg" alt="Second" title="Second"> <img src="http://rumart.weebly.com/files/theme/003.jpg" alt="Third" title="Third"> <img src="http://placehold.it/600x400/60C5F0/000000?text=End" alt="End" title="End" class="q-la-im"> </div> </div> </div> </body> </html>
.q-slider { display: inline-block; position: relative; max-height: 480px; width: 100vh; margin-top: 10px; } .q-slider > .q-an { display: none; } .q-slider > ul { position: relative; z-index: 1; font-size: 0; line-height: 0; margin: 0 auto; padding: 0; overflow: hidden; white-space: nowrap; } .q-slider > ul > div { width: 100%; visibility: hidden; font-size: 0px; line-height: 0; } .q-slider > ul > li.q-im img { border: 1px solid #ddd; border-radius: 4px; padding: 0.3%; width: 98%; max-height: 500px; margin: 0; object-fit: cover; object-position: 50% 50%; } .q-slider > ul > li.q-im { font-size: 0pt; } .q-slider > ul > li { position: relative; display: inline-block; width: 100%; height: 100%; overflow: hidden; font-size: 15px; font-size: initial; line-height: normal; white-space: normal; vertical-align: top; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; -webkit-transform: translate3d(0,0,0); -moz-transform: translate3d(0,0,0); -ms-transform: translate3d(0,0,0); -o-transform: translate3d(0,0,0); transform: translate3d(0,0,0); } .q-slider > ul > li.q-im, .q-slider > .q-arrp, .q-slider > .q-arrn, .q-slider > .q-bu, .q-slider > .q-pl-pa { -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .q-slider > .q-arrp, .q-slider > .q-arrn { position: absolute; top: 50%; -webkit-box-sizing: content-box; -moz-box-sizing: content-box; box-sizing: content-box; z-index: 5; } .q-slider > .q-arrp > label, .q-slider > .q-arrn > label { position: absolute; text-decoration: none; cursor: pointer; opacity: 0; z-index: -1; } .q-slider > .q-arrp { left: 0; } .q-slider > .q-arrn { right: 0; } .q-slider > .sl:checked ~ .q-arrp > label, .q-slider > .sl:checked ~ .q-arrn > label { opacity: 0; z-index: -1; } .q-slider > #q-sl-0:checked ~ .q-arrp > label.n-2, .q-slider > #q-pa-0:checked ~ .q-arrp > label.n-2, .q-slider > #q-sl-0:checked ~ .q-arrn > label.n-1, .q-slider > #q-pa-0:checked ~ .q-arrn > label.n-1, .q-slider > #q-sl-1:checked ~ .q-arrp > label.n-0, .q-slider > #q-pa-1:checked ~ .q-arrp > label.n-0, .q-slider > #q-sl-1:checked ~ .q-arrn > label.n-2, .q-slider > #q-pa-1:checked ~ .q-arrn > label.n-2, .q-slider > #q-sl-2:checked ~ .q-arrp > label.n-1, .q-slider > #q-pa-2:checked ~ .q-arrp > label.n-1, .q-slider > #q-sl-2:checked ~ .q-arrn > label.n-0, .q-slider > #q-pa-2:checked ~ .q-arrn > label.n-0 { opacity: 1; z-index: 5; } /* calculate autoplay */ @-webkit-keyframes arrow { 0%, 33.32333333333334% { opacity: 1; z-index: 5; } 33.333333333333336%, 100% { opacity: 0; z-index: -1; } } @-moz-keyframes arrow { 0%, 33.32333333333334% { opacity: 1; z-index: 5; } 33.333333333333336%, 100% { opacity: 0; z-index: -1; } } @keyframes arrow { 0%, 33.32333333333334% { opacity: 1; z-index: 5; } 33.333333333333336%, 100% { opacity: 0; z-index: -1; } } .q-slider > #q-pl:checked ~ .q-arrp > label.n-2, .q-slider > #q-pl:checked ~ .q-arrn > label.n-1 { -webkit-animation: arrow 12300ms infinite -1000ms; -moz-animation: arrow 12300ms infinite -1000ms; animation: arrow 12300ms infinite -1000ms; } .q-slider > #q-pl:checked ~ .q-arrp > label.n-0, .q-slider > #q-pl:checked ~ .q-arrn > label.n-2 { -webkit-animation: arrow 12300ms infinite 3100ms; -moz-animation: arrow 12300ms infinite 3100ms; animation: arrow 12300ms infinite 3100ms; } .q-slider > #q-pl:checked ~ .q-arrp > label.n-1, .q-slider > #q-pl:checked ~ .q-arrn > label.n-0 { -webkit-animation: arrow 12300ms infinite 7200ms; -moz-animation: arrow 12300ms infinite 7200ms; animation: arrow 12300ms infinite 7200ms; } /* stop */ .q-slider > .sl:checked ~ .q-arrp > label, .q-slider > .sl:checked ~ .q-arrn > label, .q-slider > .pa:checked ~ .q-arrp > label, .q-slider > .pa:checked ~ .q-arrn > label { -webkit-animation: none; -moz-animation: none; -ms-animation: none; -o-animation: none; animation: none; } /* calculate autoplay */ .q-slider > .q-bu { position: absolute; left: 0; width: 100%; z-index: 6; font-size: 0; line-height: 8pt; text-align: center; } .q-slider > .q-bu > div { margin-left: -50%; width: 100%; } .q-slider > .q-bu > label { position: relative; display: inline-block; cursor: pointer; } .q-slider > .q-bu > label > .q-th { visibility: hidden; position: absolute; opacity: 0; z-index: 1; line-height: 0; left: -55px; top: -48px; } .q-slider > .q-bu > label > .q-th > img { max-width: none; }.q-slider > .q-de { z-index: 3; } .q-slider > .q-de a, .q-slider > .q-de a:visited, .q-slider > .q-de a:active { color: inherit; } .q-slider > .q-de a:hover { text-decoration: none; } .q-slider > .q-de > label { position: absolute; word-wrap: break-word; white-space: normal; text-align: left; max-width: 50%; left: 0; } .q-slider > .q-de > label > span { vertical-align: top; } .q-slider > .q-de > label span { display: inline-block; } .q-slider .q-ge { visibility: hidden; position: absolute; font-size: 0; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; z-index: 1; opacity: 0; -webkit-transition: visibility .3s linear, opacity .3s linear; -o-transition: visibility .3s linear, opacity .3s linear; transition: visibility .3s linear, opacity .3s linear; } .q-slider .q-ge.q-show { visibility: visible; opacity: 1; } .q-slider .q-ge.q-show img { width: 33.333333333333336%; } .q-slider .q-ge.q-show .q-fi-im { position: absolute; left: -33.333333333333336%; top: 0; } .q-slider .q-ge.q-show .q-la-im { position: absolute; left: 100%; top: 0; } .q-slider .q-ge > div { position: absolute; left: 0; top: 0; width: 300%; }.q-slider > ul > li.n-0 { left: 0%; } .q-slider > ul > li.n-1 { left: 100%; } .q-slider > ul > li.n-2 { left: 200%; } .q-slider > #q-sl-0:checked ~ ul > li, .q-slider > #q-pa-0:checked ~ ul > li { -webkit-transform: translateX(0%); -moz-transform: translateX(0%); transform: translateX(0%); } .q-slider > #q-sl-1:checked ~ ul > li, .q-slider > #q-pa-1:checked ~ ul > li { -webkit-transform: translateX(-100%); -moz-transform: translateX(-100%); transform: translateX(-100%); } .q-slider > #q-sl-2:checked ~ ul > li, .q-slider > #q-pa-2:checked ~ ul > li { -webkit-transform: translateX(-200%); -moz-transform: translateX(-200%); transform: translateX(-200%); } .q-slider > ul > li { position: absolute; top: 0; left: 0; display: inline-block; opacity: 1; -webkit-transition: -webkit-transform 1000ms; -moz-transition: -moz-transform 1000ms; transition: transform 1000ms; -webkit-transform: scale(1); -moz-transform: scale(1); transform: scale(1); } /* calculate autoplay */ @-webkit-keyframes slide { 0%, 25.203252032520325% { -webkit-transform: translateX(0%); } 33.333333333333336%, 58.53658536585366% { -webkit-transform: translateX(-100%); } 66.66666666666667%, 91.869918699187% { -webkit-transform: translateX(-200%); } } @-moz-keyframes slide { 0%, 25.203252032520325% { -moz-transform: translateX(0%); } 33.333333333333336%, 58.53658536585366% { -moz-transform: translateX(-100%); } 66.66666666666667%, 91.869918699187% { -moz-transform: translateX(-200%); } } @keyframes slide { 0%, 25.203252032520325% { transform: translateX(0%); } 33.333333333333336%, 58.53658536585366% { transform: translateX(-100%); } 66.66666666666667%, 91.869918699187% { transform: translateX(-200%); } } .q-slider > #q-pl:checked ~ ul > li { -webkit-animation: slide 12300ms infinite; -moz-animation: slide 12300ms infinite; animation: slide 12300ms infinite; } .q-slider > #q-pl:checked ~ ul > li, .q-slider > .pa:checked ~ ul > li { -webkit-transition: none; -moz-transition: none; transition: none; } /* calculate autoplay */ .q-slider > .q-arrp, .q-slider > .q-arrn { top: 0; bottom: 0; width: 15%; opacity: .5; } .q-slider > .q-arrp:hover, .q-slider > .q-arrn:hover { opacity: .9; } .q-slider > .q-arrp { left: 0; } .q-slider > .q-arrn { right: 0; } .q-slider > .q-arrp > label, .q-slider > .q-arrn > label { top: 0; left: 0; bottom: 0; width: 100%; } .q-slider > .q-arrp > label span, .q-slider > .q-arrn > label span { display: block; position: absolute; width: 100%; height: 100%; } .q-slider > .q-arrp > label span { float: left; } .q-slider > .q-arrn > label span { float: right; } .q-slider > .q-arrp > label span:after, .q-slider > .q-arrn > label span:after { display: block; position: absolute; width: 100%; top: 50%; margin-top: -23px; font: 64px "bootstrapcontrols"; color: #fff; line-height: 47px; text-align: center; text-shadow: 0 1px 2px rgba(0,0,0,0.6); } .q-slider > .q-arrp > label span:after { content: '\2039'; } .q-slider > .q-arrn > label span:after { content: '\203A'; }.q-slider > .q-bu { bottom: 20px; width: 70%; left: 15%; } .q-slider > .q-bu > label { margin: 0 2px; padding: 5px; border-radius: 50%; background: transparent; -webkit-box-shadow: inset 0 0 0 1px #fff; box-shadow: inset 0 0 0 1px #fff; } .q-slider > .q-bu > label > .q-th { border: 3px solid #fff; margin-top: -13px; -webkit-transition: opacity .3s, visibility .3s; -moz-transition: opacity .3s, visibility .3s; transition: opacity .3s, visibility .3s; } .q-slider > .q-bu > label > .q-th:before { content: ''; position: absolute; width: 0; height: 0; left: 50%; margin-left: -5px; bottom: -10px; border-left: 7px solid transparent; border-right: 7px solid transparent; border-top: 7px solid #fff; } .q-slider > .q-bu > label:hover > .q-th { opacity: 1; visibility: visible; } .q-slider > #q-sl-0:checked ~ .q-bu > label.n-0, .q-slider > #q-pa-0:checked ~ .q-bu > label.n-0, .q-slider > #q-sl-1:checked ~ .q-bu > label.n-1, .q-slider > #q-pa-1:checked ~ .q-bu > label.n-1, .q-slider > #q-sl-2:checked ~ .q-bu > label.n-2, .q-slider > #q-pa-2:checked ~ .q-bu > label.n-2 { background: #fff; padding: 6px; -webkit-box-shadow: none; box-shadow: none; } /* calculate autoplay */ @-webkit-keyframes bullet { 0%, 33.32333333333334% { -webkit-box-shadow: none; background: #fff; padding: 6px; } 33.333333333333336%, 100% { -webkit-box-shadow: inset 0 0 0 1px #fff; background: transparent; padding: 5px; margin-bottom: 0; } } @-moz-keyframes bullet { 0%, 33.32333333333334% { -moz-box-shadow: none; background: #fff; padding: 6px; } 33.333333333333336%, 100% { -moz-box-shadow: inset 0 0 0 1px #fff; background: transparent; padding: 5px; margin-bottom: 0; } } @keyframes bullet { 0%, 33.32333333333334% { box-shadow: none; background: #fff; padding: 6px; } 33.333333333333336%, 100% { box-shadow: inset 0 0 0 1px #fff; background: transparent; padding: 5px; margin-bottom: 0; } } .q-slider > #q-pl:checked ~ .q-bu > label.n-0 { -webkit-animation: bullet 12300ms infinite -1000ms; -moz-animation: bullet 12300ms infinite -1000ms; animation: bullet 12300ms infinite -1000ms; } .q-slider > #q-pl:checked ~ .q-bu > label.n-1 { -webkit-animation: bullet 12300ms infinite 3100ms; -moz-animation: bullet 12300ms infinite 3100ms; animation: bullet 12300ms infinite 3100ms; } .q-slider > #q-pl:checked ~ .q-bu > label.n-2 { -webkit-animation: bullet 12300ms infinite 7200ms; -moz-animation: bullet 12300ms infinite 7200ms; animation: bullet 12300ms infinite 7200ms; } .q-slider > #q-pl:checked ~ .q-bu > label > .q-po, .q-slider > .pa:checked ~ .q-bu > label > .q-po { -webkit-transition: none; -moz-transition: none; transition: none; } /* stop */ .q-slider > .sl:checked ~ .q-bu > label > .q-po, .q-slider > .pa:checked ~ .q-bu > label > .q-po { -webkit-animation: none; -moz-animation: none; -ms-animation: none; -o-animation: none; animation: none; } /* calculate autoplay */ .q-slider > .q-de > label { font-family: "Helvetica Neue",Helvetica,Arial,sans-serif; font-size: 12pt; line-height: normal; bottom: 50px; left: 20%; right: 20%; top: auto; z-index: 3; text-align: center; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); max-width: 100%; color: #fff; } .q-slider > .q-de > label .q-ti { margin-bottom: 10px; font-size: 24px; } .q-slider > .q-de > label .q-de { font-size: 14px; } .q-slider > #q-sl-0:checked ~ .q-de > .n-0 > .q-ti, .q-slider > #q-sl-0:checked ~ .q-de > .n-0 > .q-de, .q-slider > #q-pa-0:checked ~ .q-de > .n-0 > .q-ti, .q-slider > #q-pa-0:checked ~ .q-de > .n-0 > .q-de, .q-slider > #q-sl-1:checked ~ .q-de > .n-1 > .q-ti, .q-slider > #q-sl-1:checked ~ .q-de > .n-1 > .q-de, .q-slider > #q-pa-1:checked ~ .q-de > .n-1 > .q-ti, .q-slider > #q-pa-1:checked ~ .q-de > .n-1 > .q-de, .q-slider > #q-sl-2:checked ~ .q-de > .n-2 > .q-ti, .q-slider > #q-sl-2:checked ~ .q-de > .n-2 > .q-de, .q-slider > #q-pa-2:checked ~ .q-de > .n-2 > .q-ti, .q-slider > #q-pa-2:checked ~ .q-de > .n-2 > .q-de { opacity: 1; visibility: visible; } .q-slider > .q-de > label > .q-ti { opacity: 0; visibility: hidden; z-index: 2; -webkit-transition: opacity .4s, visibility .4s; -moz-transition: opacity .4s, visibility .4s; transition: opacity .4s, visibility .4s; } .q-slider > .q-de > label > .q-de { font-size: 0.8em; opacity: 0; visibility: hidden; z-index: 1; -webkit-transition: opacity .4s, visibility .4s; -moz-transition: opacity .4s, visibility .4s; transition: opacity .4s, visibility .4s; } /* calculate autoplay */ @-webkit-keyframes q-ti { 4.065040650406504%, 33.333333333333336% { opacity: 1; z-index: 2; visibility: visible;} 37.39837398373984% { opacity: 0; z-index: 2; visibility: hidden;} 37.408373983739835%, 100% { z-index: 0; } } @-moz-keyframes q-ti { 4.065040650406504%, 33.333333333333336% { opacity: 1; z-index: 2; visibility: visible;} 37.39837398373984% { opacity: 0; z-index: 2; visibility: hidden;} 37.408373983739835%, 100% { z-index: 0; } } @keyframes q-ti { 4.065040650406504%, 33.333333333333336% { opacity: 1; z-index: 2; visibility: visible;} 37.39837398373984% { opacity: 0; z-index: 2; visibility: hidden;} 37.408373983739835%, 100% { z-index: 0; } } .q-slider > #q-pl:checked ~ .q-de > .n-0 > .q-ti { -webkit-animation: q-ti 12300ms infinite -700ms ease; -moz-animation: q-ti 12300ms infinite -700ms ease; animation: q-ti 12300ms infinite -700ms ease; } .q-slider > #q-pl:checked ~ .q-de > .n-1 > .q-ti { -webkit-animation: q-ti 12300ms infinite 3400ms ease; -moz-animation: q-ti 12300ms infinite 3400ms ease; animation: q-ti 12300ms infinite 3400ms ease; } .q-slider > #q-pl:checked ~ .q-de > .n-2 > .q-ti { -webkit-animation: q-ti 12300ms infinite 7500ms ease; -moz-animation: q-ti 12300ms infinite 7500ms ease; animation: q-ti 12300ms infinite 7500ms ease; } .q-slider > #q-pl:checked ~ .q-de > .n-0 > .q-de { -webkit-animation: q-ti 12300ms infinite -700ms ease; -moz-animation: q-ti 12300ms infinite -700ms ease; animation: q-ti 12300ms infinite -700ms ease; } .q-slider > #q-pl:checked ~ .q-de > .n-1 > .q-de { -webkit-animation: q-ti 12300ms infinite 3400ms ease; -moz-animation: q-ti 12300ms infinite 3400ms ease; animation: q-ti 12300ms infinite 3400ms ease; } .q-slider > #q-pl:checked ~ .q-de > .n-2 > .q-de { -webkit-animation: q-ti 12300ms infinite 7500ms ease; -moz-animation: q-ti 12300ms infinite 7500ms ease; animation: q-ti 12300ms infinite 7500ms ease; } .q-slider > #q-pl:checked ~ .q-de > label > .q-ti, .q-slider > #q-pl:checked ~ .q-de > label > .q-de, .q-slider > .pa:checked ~ .q-de > label > .q-ti, .q-slider > .pa:checked ~ .q-de > label > .q-de { -webkit-transition: none; -moz-transition: none; transition: none; } /* stop */ .q-slider > .sl:checked ~ .q-de > label, .q-slider > .pa:checked ~ .q-de > label { -webkit-animation: none; -moz-animation: none; -ms-animation: none; -o-animation: none; animation: none; } /* calculate autoplay */ /* hide description & bullets on mobile devices */ @media only screen and (max-width: 480px), only screen and (-webkit-max-device-pixel-ratio: 2) and (max-width: 480px), only screen and (max--moz-device-pixel-ratio: 2) and (max-width: 480px), only screen and (-o-max-device-pixel-ratio: 2/1) and (max-width: 480px), only screen and (max-device-pixel-ratio: 2) and (max-width: 480px), only screen and (max-resolution: 192dpi) and (max-width: 480px), only screen and (max-resolution: 2dppx) and (max-width: 480px) { .q-slider > .q-de, .q-slider > .q-bu { display: none; } }

Related: See More


Questions / Comments: