"card"
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/BrahimS/pen/rWqMwJ?limit=all&page=78&q=food" /> <link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css'> <style class="cp-pen-styles">@import url("https://fonts.googleapis.com/css?family=Chelsea+Market|Quicksand"); html, body { margin: 0; padding: 0; background: -webkit-linear-gradient(left top, #4E4D5C, black); background: linear-gradient(left top, #4E4D5C, black); } *, *:before, *:after { box-sizing: border-box; } .wrapper { width: 100vw; height: 100vh; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: horizontal; -webkit-box-direction: normal; -ms-flex-direction: row; flex-direction: row; -ms-flex-wrap: no-wrap; flex-wrap: no-wrap; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -ms-flex-line-pack: center; align-content: center; } .wrapper figure { position: relative; max-width: 500px; width: 100%; height: auto; text-align: center; overflow: hidden; } @media (min-width: 1px) and (max-width: 768px) { .wrapper figure { text-align: left; } } .wrapper figure:hover figcaption { bottom: 10em; -webkit-transform: rotate(0); transform: rotate(0); } .wrapper figure figcaption { position: absolute; bottom: -22em; left: 3em; width: 80%; background: rgba(253, 164, 40, 0.8); padding: 1em; border-radius: 0.5em; -webkit-transition: 0.3s ease-out; transition: 0.3s ease-out; -webkit-transform: rotate(30deg); transform: rotate(30deg); overflow: hidden; } @media (min-width: 1px) and (max-width: 768px) { .wrapper figure figcaption { padding: 0.2em; border-radius: none; left: 0; width: 100%; text-align: center; } .wrapper figure figcaption:hover { bottom: 0; } } .wrapper figure img { display: block; width: 100%; height: auto; -webkit-transition: 0.5s ease; transition: 0.5s ease; } .wrapper figure h2 { color: white; font-size: 2.5em; word-spacing: -0.2em; font-family: "Chelsea Market", cursive; } @media (min-width: 1px) and (max-width: 768px) { .wrapper figure h2 { font-size: 1.5em; } } .wrapper figure p { color: white; margin-top: -1.2em; font-size: 1.3em; font-family: "Quicksand", sans-serif; } @media (min-width: 1px) and (max-width: 768px) { .wrapper figure p { font-size: 1em; margin-top: 0.5em; } } .wrapper figure a { color: white; text-decoration: none; background: green; padding: 1em; border-radius: 0.6em 0.6em 0 0; -webkit-transition: 0.3s ease-out; transition: 0.3s ease-out; } @media (min-width: 1px) and (max-width: 768px) { .wrapper figure a { font-size: 0.8em; } } .wrapper figure a:hover { background: #334832; } </style></head><body> <section class="wrapper"> <figure><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/149454/food1-brooke-lark.jpg" alt="food in a table"/> <figcaption> <h2>Lorem ipsum </h2> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nulla iusto sequi quos hic nobis ipsa inventore eius laborum nam saepe obcaecati.</p><a class="hove_me" href="#"> CTA</a> </figcaption> </figure> <figure><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/149454/food4-maria-mekht.jpg" alt="food in a table"/> <figcaption> <h2>Lorem ipsum </h2> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nulla iusto sequi quos hic nobis ipsa inventore eius laborum nam saepe obcaecati.</p><a class="hove_me" href="#"> CTA</a> </figcaption> </figure> </section> </body></html>

Related: See More


Questions / Comments: