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>
  
</body>
  <nav>
    <a rel="prev" href="#" data-title="JavaScript: Taking Off the Training Wheels">Previous Article</a>
    <a rel="next" href="#" data-title="Animating Vectors with SVG">Next Article</a>
  </nav>
</html>
 
body {
  font: 16px/1 sans-serif;
  margin: 0;
}
nav a {
  font: 0/0 sans-serif;
  text-align: center;
  text-decoration: none;
  display: block;
  position: relative;
  width: 4rem;
  height: 4rem;
}
nav a::before {
  color: #fff;
  font: 2rem/4rem serif;
  background-color: #ccc;
  width: 4rem;
  height: 4rem;
  z-index: 99;
  display: block;
  position: absolute;
}
nav a[rel="prev"]::before {
  content: "\2190";
}
nav a[rel="next"]::before {
  content: "\2192";
}
nav a::after {
  color: #fff;
  font: 0.875rem/1.1429 sans-serif;
  text-align: left;
  white-space: pre-wrap;
  background-color: rgba(0,0,0,0.75);
  padding: 0.5rem 0.75rem;
  top: 0;
  bottom: 0;
  right: 0;
  width: 18rem;
  z-index: 0;
  display: block;
  position: absolute;
  transition: all .3s ease-out;
}
nav a[rel="prev"]::after {
  content: "Previously: \A"attr(data-title);
}
nav a[rel="next"]::after {
  content: "Next: \A"attr(data-title);
}
nav a:hover::after {
  right: -19.5rem;
}
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers