Background blurred CSS

HTML
<div id="box1" class="box blurred-bg tinted"> <div class="content"> <h1>Blurred Background</h1> <h2>By <a href="http://ariona.net" rel="follow" target="_blank">Ariona, Rian</a></h2> <p>Drag this box to move around</p> <p class="related">See also: <a href="http://codepen.io/ariona/details/LVZLGP/" target="_blank">Staged Dropdown Animation</a></p> </div> </div>
CSS
body { background-image: url("http://d2vd5uo799806j.cloudfront.net/b/7/c/b7ca81c549dd352255a6cc63e95173c6.jpeg"); background-repeat: no-repeat; background-size: cover; background-attachment: fixed; font-family: Raleway, Open Sans, Droid Sans, Roboto,arial, sans-serif; } .blurred-bg { background-image: url("http://s8.hostingkartinok.com/uploads/images/2016/08/9d379f6d0ccb20b26dc50ff27aaf1f02.jpg"); background-repeat: no-repeat; -moz-background-size: cover; -o-background-size: cover; -webkit-background-size: cover; background-size: cover; background-attachment: fixed; } .blurred-bg.tinted { background-image: url('http://s8.hostingkartinok.com/uploads/images/2016/08/9d379f6d0ccb20b26dc50ff27aaf1f02.jpg"); background-size: 100%; background-image: -moz-linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)), url("http://s8.hostingkartinok.com/uploads/images/2016/08/9d379f6d0ccb20b26dc50ff27aaf1f02.jpg"); background-image: -webkit-linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)), url("http://s8.hostingkartinok.com/uploads/images/2016/08/9d379f6d0ccb20b26dc50ff27aaf1f02.jpg"); background-image: linear-gradient(0deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)), url("http://s8.hostingkartinok.com/uploads/images/2016/08/9d379f6d0ccb20b26dc50ff27aaf1f02.jpg"); } .blurred-bg.shaded { background-image: url('http://s8.hostingkartinok.com/uploads/images/2016/08/9d379f6d0ccb20b26dc50ff27aaf1f02.jpg"); background-size: 100%; background-image: -moz-linear-gradient(90deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url("http://s8.hostingkartinok.com/uploads/images/2016/08/9d379f6d0ccb20b26dc50ff27aaf1f02.jpg"); background-image: -webkit-linear-gradient(90deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url("http://s8.hostingkartinok.com/uploads/images/2016/08/9d379f6d0ccb20b26dc50ff27aaf1f02.jpg"); background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url("http://s8.hostingkartinok.com/uploads/images/2016/08/9d379f6d0ccb20b26dc50ff27aaf1f02.jpg"); } .box { width: 500px; height: 300px; left: -webkit-calc( 50% - 250px ); top: 20%; position: absolute; border-radius: 5px; -moz-box-shadow: 0 20px 30px rgba(0, 0, 0, 0.6); -webkit-box-shadow: 0 20px 30px rgba(0, 0, 0, 0.6); box-shadow: 0 20px 30px rgba(0, 0, 0, 0.6); border: 1px solid rgba(255, 255, 255, 0.3); padding: 20px; text-align: center; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4); display: flex; transition: box-shadow .3s ease; } .box:active { cursor: move; -moz-box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9); -webkit-box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9); } .box .content { margin: auto; } h1, h2, a, p { color: white; font-weight: 100; } .tinted h1, .tinted h2, .tinted a, .tinted p { color: black; text-shadow: 0 1px 1px rgba(255, 255, 255, 0.2); } h2 { font-size: 14px; } p { margin: 20px; } p.related { text-transform: uppercase; font-weight: 700; color: #444; } p.related a { font-weight: 700; text-decoration: none; } p.related a:hover { text-decoration: underline; }
JAVASCRIPT
$(function() { $( ".box" ).draggable(); });
Expand for more options Login