Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body>
<div class="main">
  <img src="http://placeimg.com/400/300/animals">
  <div>
    animal
  </div>
</div>
</body>
</html>
 
.main {
  display: inline-block;
  text-align: center;
  position: relative;
}
.main img {
  position: relative;
}
.main div {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 30%;
  z-index: 0;
}
.main div:after {
  content: '';
  width: 150%;
  left: -25%;
  background: white;
  height: 150%;
  top: -15%;
  position: absolute;
  z-index: -1;
  border-radius: 50%;
}
Output 300px

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers