Skip to content

Instantly share code, notes, and snippets.

@kauffmanes
Created July 28, 2017 17:07
Show Gist options
  • Save kauffmanes/c9bb60af4f8f576a9c709b7b57e35948 to your computer and use it in GitHub Desktop.
Save kauffmanes/c9bb60af4f8f576a9c709b7b57e35948 to your computer and use it in GitHub Desktop.
JS Bin // source http://jsbin.com/nuwokib
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
.glint {
background: radial-gradient(
transparent 40%,
rgba(255, 255, 255, .1) 90%);
pointer-events: none;
z-index: 1;
position: absolute;
top: -700px;
left: 200px;
width: 1300px;
height: 1060px;
border-radius: 100%;
}
.banner-image {
overflow: hidden;
background: url('http://i.imgur.com/OFFk8obg.png') no-repeat;
background-size: cover;
width: 700px;
height: 361px;
position: relative;
}
</style>
</head>
<body>
<div class="banner-image">
<div class="glint"></div>
</div>
<script id="jsbin-source-css" type="text/css">.glint {
background: radial-gradient(
transparent 40%,
rgba(255, 255, 255, .1) 90%);
pointer-events: none;
z-index: 1;
position: absolute;
top: -700px;
left: 200px;
width: 1300px;
height: 1060px;
border-radius: 100%;
}
.banner-image {
overflow: hidden;
background: url('http://i.imgur.com/OFFk8obg.png') no-repeat;
background-size: cover;
width: 700px;
height: 361px;
position: relative;
}</script>
</body>
</html>
.glint {
background: radial-gradient(
transparent 40%,
rgba(255, 255, 255, .1) 90%);
pointer-events: none;
z-index: 1;
position: absolute;
top: -700px;
left: 200px;
width: 1300px;
height: 1060px;
border-radius: 100%;
}
.banner-image {
overflow: hidden;
background: url('http://i.imgur.com/OFFk8obg.png') no-repeat;
background-size: cover;
width: 700px;
height: 361px;
position: relative;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment