<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 lang='en' 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/znak/pen/ntsdy?limit=all&page=7&q=draggable" />
<link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css'><link rel='stylesheet prefetch' href='//ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/themes/smoothness/jquery-ui.css'>
<style class="cp-pen-styles">*, *:before {
box-sizing: border-box;
position: relative;
}
html, body {
margin: 0;
padding: 0;
}
body {
background: url("http://upload.wikimedia.org/wikipedia/commons/d/d6/Half_Dome_from_Glacier_Point%2C_Yosemite_NP_-_Diliff.jpg") 50% no-repeat fixed;
background-size: cover;
font: 14px/1.4 'HelveticaNeue-Light', 'Helvetica Neue Light', 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;
}
h2 {
font-size: 1.4em;
font-weight: 300;
color: #222;
}
p:not(:last-child) {
margin-bottom: 0.6em;
}
p.small {
font-size: 0.8em;
color: #222;
text-align: center;
}
a {
text-decoration: none;
color: inherit;
border-bottom: 1px solid #888;
}
article {
width: 300px;
position: absolute;
top: 40px;
left: 40px;
background: inherit;
border: 1px solid rgba(0, 0, 0, 0.1);
border-radius: 6px;
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
overflow: hidden;
}
article:before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: inherit;
-webkit-filter: blur(10px) saturate(2);
filter: blur(10px) saturate(2);
}
article .title {
padding: 8px;
background: rgba(235, 235, 235, 0.85);
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
text-align: center;
}
article .title:hover {
cursor: move;
}
article .content {
padding: 8px;
background: rgba(255, 255, 255, 0.66);
}
.attr {
position: fixed;
right: 5px;
bottom: 5px;
font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;
font-size: 0.8em;
font-weight: normal;
color: white;
}
</style></head><body>
<article>
<div class="title">
<h2>Drag me</h2>
</div>
<div class="content">
<p>Thoughtfully redesigning OS X meant going deep into every aspect of the interface and focusing on details large and small. There are obvious changes to big things, like translucency in windows and streamlined toolbars. And there are more subtle changes to a lot of small things, like the buttons, icons, and font you see throughout the system. The more you use your Mac, the more you’ll notice, and the more you’ll love it.</p>
<p>By adding translucency to certain interface elements in OS X Yosemite, we’ve put a greater emphasis on your content. Translucent toolbars let you know there’s more to see than what’s visible in the window as you scroll. And a translucent sidebar lets you see what’s hidden behind the active window. So the interface takes on the look of your desktop image and your content — making your Mac experience different from anyone else’s.</p>
<p class="small">Source: <a href="https://www.apple.com/osx/preview/design/">Apple</a></p>
</div>
</article>
<div class="attr">
<h6>Photo by DAVID ILIFF. License: CC-BY-SA 3.0</h6>
</div>
<script src='//production-assets.codepen.io/assets/common/stopExecutionOnTimeout-b2a7b3fe212eaa732349046d8416e00a9dec26eb7fd347590fbced3ab38af52e.js'></script><script src='//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script><script src='//ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js'></script>
<script >$('article').draggable({ handle: ".title" });
//# sourceURL=pen.js
</script>
</body></html>