"card + video"
Bootstrap 3.0.0 Snippet by evarevirus

<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.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 class=''> <head><script src='//production-assets.codepen.io/assets/editor/live/console_runner-079c09a0e3b9ff743e39ee2d5637b9216b3545af0de366d4b9aad9dc87e26bfd.js'></script><script src='//production-assets.codepen.io/assets/editor/live/events_runner-73716630c22bbc8cff4bd0f07b135f00a0bdc5d14629260c3ec49e5606f98fdd.js'></script><script src='//production-assets.codepen.io/assets/editor/live/css_live_reload_init-2c0dc5167d60a5af3ee189d570b1835129687ea2a61bee3513dee3a50c115a77.js'></script><meta charset='UTF-8'><meta name="robots" content="noindex"><link rel="shortcut icon" type="image/x-icon" href="//production-assets.codepen.io/assets/favicon/favicon-8ea04875e70c4b0bb41da869e81236e54394d63638a1ef12fa558a4a835f1164.ico" /><link rel="mask-icon" type="" href="//production-assets.codepen.io/assets/favicon/logo-pin-f2d2b6d2c61838f7e76325261b7195c27224080bc099486ddd6dccb469b8e8e6.svg" color="#111" /><link rel="canonical" href="https://codepen.io/masonfox/pen/akRYNV?depth=everything&order=popularity&page=92&q=Overlay&show_forks=false" /> <meta name="viewport" content="width=device-width, initial-scale=1"> <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> <link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css'><link rel='stylesheet prefetch' href='https://cdn.rawgit.com/twbs/bootstrap/v4-dev/dist/css/bootstrap.css'> <style class="cp-pen-styles">@import url(https://fonts.googleapis.com/css?family=Roboto:400,300,600); @import url(https://fonts.googleapis.com/css?family=Open+Sans:400,300,600); :root { font-size: 16px; } * { box-sizing: border-box; } html, body { height: 100%; margin: 0; padding: 0; font-family: "Roboto"; background: #f9f9f9; } .wrapper { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; -webkit-box-align: center; -ms-flex-align: center; align-items: center; height: 100vh; } .grid__item { width: 20rem; height: auto; overflow: hidden; border-radius: 4px; } .grid__item-top { position: relative; background: url("https://laracasts.s3.amazonaws.com/images/video-thumbnails/series/vue-step-by-step.jpg"); background-position: center center; background-size: cover; background-repeat: no-repeat; min-height: 15rem; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: end; -ms-flex-align: end; align-items: flex-end; } .grid__item-top:hover, .grid__item-top:focus { color: #fff; } .grid__item-top:hover .overlay, .grid__item-top:focus .overlay { opacity: 1; } .grid__item-top .top-holder { position: absolute; padding: 1rem; z-index: 10; width: 100%; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; } .grid__item-top .top-holder i { color: red; } .grid__item-top .content { position: relative; padding: 1rem; z-index: 10; color: #fff; } .grid__item-top .content .subtitle { color: rgba(255, 255, 255, 0.75); text-transform: uppercase; font-size: .85rem; } .grid__item-top .overlay { position: absolute; z-index: 5; top: 0; left: 0; height: 100%; width: 100%; background: rgba(52, 73, 94, 0.75); display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-transition: 300ms ease; transition: 300ms ease; opacity: 0; } .grid__item-top .overlay i { font-size: 5rem; } .grid__item-bottom { border: 1px solid #ddd; padding: 1rem; background: #fff; } .grid__item-bottom p { color: #777; } .tag-lg { padding: .5rem 1rem; font-size: .9rem; } .tag-md { padding: .25rem .5rem; font-size: .9rem; } a:hover, a:focus { text-decoration: none; } </style></head><body> <div class="wrapper"> <div class="grid__item"><a class="grid__item-top" href="#0"> <div class="top-holder"> <div> <div class="tag tag-success">New</div> </div> <div><i class="material-icons">favorite</i></div> </div> <div class="content"> <h6 class="subtitle">15 Videos</h6> <h3 class="title">Vue JS and Laravel</h3> </div> <div class="overlay"><i class="material-icons">play_circle_filled</i></div></a> <div class="grid__item-bottom"> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Optio quidem maxime, odit error. Dignissimos error, dolorem excepturi id exercitationem voluptatum perspiciatis culpa nam.</p> <div class="tag tag-default">Laravel</div> <div class="tag tag-default">Vue JS</div> </div> </div> </div> <script src='https://code.jquery.com/jquery-2.2.4.min.js'></script><script src='https://cdn.rawgit.com/twbs/bootstrap/v4-dev/dist/js/bootstrap.js'></script> </body></html>

Related: See More


Questions / Comments: