"carousel"
Bootstrap 4.1.1 Snippet by evarevirus

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <link rel="shortcut icon" type="image/x-icon" href="https://static.codepen.io/assets/favicon/favicon-aec34940fbc1a6e787974dcd360f2c6b63348d4b1f4e06c77743096d55480f33.ico" /> <link rel="mask-icon" type="" href="https://static.codepen.io/assets/favicon/logo-pin-8f3771b1072e3c38bd662872f6b673a722f4b3ca2421637d5596661b4e2132cc.svg" color="#111" /> <title>CodePen - slider</title> <link rel='stylesheet' href='//cdn.jsdelivr.net/gh/kenwheeler/slick@1.8.1/slick/slick.css'> <link rel='stylesheet' href='//cdn.jsdelivr.net/gh/kenwheeler/slick@1.8.1/slick/slick-theme.css'> <style> @font-face { font-family: 'Pacifico'; src: url('pacifico.eot'); src: url('pacifico.eot?#iefix') format('embedded-opentype'), url('pacifico.woff') format('woff'), url('pacifico.ttf') format('truetype'), url('pacifico.svg#Pacifico') format('svg'); } #disqus_thread{margin-top:20px;} *{-moz-box-sizing:border-box;box-sizing:border-box;} .blue{background:#3498db;color:#fff;} .blue h3{background:#fff;color:#3498db;font-size:36px;line-height:100px;margin:10px;padding:2%;position:relative;text-align:center;} .variable-width .slick-slide p { background: #fff; height: 100px; color:#3498db; margin: 5px; line-height: 100px; } .button{background:#3498db;color:#fff;display:block;font-size:16px;margin:20px auto;padding:20px;text-align:center;text-decoration:none;width:48%;} .buttons{padding:0 20px 20px; margin-bottom: 10px;} .buttons .button{background:#FFF;color:#3498db;float:left;margin:5px;} .center .slick-center h3{-moz-transform:scale(1.08);-ms-transform:scale(1.08);-o-transform:scale(1.08);-webkit-transform:scale(1.08);color:#e67e22;opacity:1;transform:scale(1.08);} .center h3{opacity:0.8;transition:all 300ms ease;} .content{margin:auto;padding:20px;width:600px;} .content:after,.buttons::after{clear:both;content:"";display:table;} .destroy{font-weight:400;margin-top:40px;} .features{display:block;list-style-type:none;margin-top:30px;padding:0;text-align:center;} .features li{margin:20px 0;} .filter .button{background:#FFF;color:#3498db; margin-bottom: 40px;} .fixed-header{background:#FFF;box-shadow:2px 0 5px rgba(0,0,0,0.5);display:none;padding:10px;position:fixed;top:0;width:100%;z-index:10000;} .fixed-header .header-content{margin:auto;width:600px;} .fixed-header .subheading{display:none;} .fixed-header h1.title{float:left;font-size:24px;margin:0;} .fixed-header ul.nav{float:right;margin:0;padding:5px;} .fixed-header ul.nav li{margin:0 0 0 10px;} .header{padding:20px 0;} .margin-40{margin-bottom:40px;} .more,.button.first{margin-top:40px;} .red{background:#e74c3c;color:#fff;} .slick-slide .image{padding:10px;} .slick-slide img{border:5px solid #FFF;display:block;width:100%;} .slick-slide img.slick-loading{border:0 } .slick-slider{margin:30px auto 50px;} .subheading{color:#555;font-size:12px;font-style:italic;font-weight:400;margin:10px auto;text-align:center;} .white{background:#fff;color:#3498db;} .white pre,.white hr{background:#3498db !important;} a{color:#3498db;} body,html{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;background:#fff; font-family: "Lato","Helvetica Neue","Helvetica",Helvetica,Arial,sans-serif; height:100%;line-height:1;margin:0;padding:0;text-rendering:optimizeLegibility;width:100%;} code{color:#000; overflow-x: scroll;} h1{color:#3498db;font-family:Pacifico;font-size:72px;font-weight:400;line-height:1.2;margin:0 auto 10px;text-align:center;} h1.title{font-size:96px;} h2{font-family:Pacifico;font-size:36px;margin:20px auto;text-align:center;} h4{font-family:Pacifico;font-size:28px;margin:20px auto;text-align:center;} hr{background:#fff;border:0;height:1px;margin:40px 0;} p{font-size:16px;font-weight:700;line-height:1.5;margin-bottom:40px;text-align:center;} p.note{font-size: 12px;} p.cdn{font-size: 14px;} p.guff{font-size:16px;} pre{background:#fff;margin:0 10px 20px;padding:10px;} section{width:100%; position: relative;} table{font-size:14px;line-height:18px;margin:40px auto 20px; display: block;} tr { width: 100%; border-right: none; border-bottom: 1px solid #fff; margin: 0px 0px 20px; padding: 0px 0px 20px; background: transparent; float: left; } thead { display: none; } td { border: 0; padding: 10px 0px;} td,tbody { display: block; width: 100% !important;} table.settings td:nth-of-type(1), table.methods td:nth-of-type(1){font-weight: 700; font-size: 16px; line-height: 18px;} table.settings td:nth-of-type(2):before{content: 'Type: '; font-weight: 700;} table.settings td:nth-of-type(3):before{content: 'Default: '; font-weight: 700;} table.methods td:nth-of-type(2):before{content: 'Arguments: '; font-weight: 700;} ul.nav{margin-bottom:0;padding-left:0;text-align:center;} ul.nav li{display:inline-block;list-style-type:none;margin:0 20px;} ul.nav li a{font-size:14px;text-decoration:none;} #carbonads { max-width: 320px; width: 100%; color: white; background: white; padding: 20px 20px 20px; margin: 0px auto 40px; text-align: center; position: relative; top: 40px; } #carbonads a { display: inline-block; margin-bottom: 0px; font-size: 10px; line-height: 1.5; } #carbonads .carbon-img { margin-bottom: 10px; } @media (max-width: 420px) { ul.nav li a{display:block;font-size:14px;} } @media (max-width: 768px) { .fixed-header { display: none !important; } #carbonads { top: 0px; } .header ul.nav li { display: block; margin: 20px; } .blue h3{font-size:24px;} .button{margin:0 auto 20px;width:auto;} .button.first{margin-top:40px;} .buttons{padding:0 0 20px;} .buttons .button{float:left;font-size:12px;margin:1%;width:48%;} .center{margin-left:-40px;margin-right:-40px;} .center .slick-center h3{-moz-transform:scale(1);-ms-transform:scale(1);-o-transform:scale(1);-webkit-transform:scale(1);color:#e67e22;opacity:1;transform:scale(1);} .center h3{-moz-transform:scale(0.95);-ms-transform:scale(0.95);-o-transform:scale(0.95);-webkit-transform:scale(0.95);opacity:0.8;transform:scale(0.95);transition:all 300ms ease;} .content{margin:auto;padding:20px 40px;width:auto;} .fixed-header .header-content{width:auto;} pre{font-size:12px; overflow-x: scroll;} table{font-size:14px;line-height:18px;margin:40px auto 20px; display: block; float: left;} tr { width: 100%; border-right: none; border-bottom: 1px solid #fff; margin: 0px 0px 20px; padding: 0px 0px 20px; background: transparent; float: left; } thead { display: none; } td { border: 0; padding: 10px 0px;} td,tbody { display: block; width: 100% !important;} table.settings td:nth-of-type(1), table.methods td:nth-of-type(1){font-weight: 700; font-size: 16px; line-height: 18px;} table.settings td:nth-of-type(2):before{content: 'Type: '; font-weight: 700;} table.settings td:nth-of-type(3):before{content: 'Default: '; font-weight: 700;} table.methods td:nth-of-type(2):before{content: 'Arguments: '; font-weight: 700;} } </style> <script> window.console = window.console || function(t) {}; </script> <script> if (document.location.search.match(/type=embed/gi)) { window.parent.postMessage("resize", "*"); } </script> </head> <body translate="no"> <div class="blue"> <div class="content"> <div class="slider center"> <div><h3>1</h3></div> <div><h3>2</h3></div> <div><h3>3</h3></div> <div><h3>4</h3></div> <div><h3>5</h3></div> <div><h3>6</h3></div> </div> </div> </div> <script src="https://static.codepen.io/assets/common/stopExecutionOnTimeout-de7e2ef6bfefd24b79a3f68b414b87b8db5b08439cac3f1012092b2290c719cd.js"></script> <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js'></script> <script src='//cdn.jsdelivr.net/gh/kenwheeler/slick@1.8.1/slick/slick.min.js'></script> <script id="rendered-js"> $('.center').slick({ centerMode: true, centerPadding: '150px', slidesToShow: 1, responsive: [ { breakpoint: 768, settings: { arrows: false, centerMode: true, centerPadding: '40px', slidesToShow: 3 } }, { breakpoint: 480, settings: { arrows: false, centerMode: true, centerPadding: '40px', slidesToShow: 1 } }] }); //# sourceURL=pen.js </script> </body> </html>

Related: See More


Questions / Comments: