Skip to content

Instantly share code, notes, and snippets.

@wnas
Last active August 15, 2017 13:48
Show Gist options
  • Save wnas/f2210aa2a6f9f52255f497268ad4670d to your computer and use it in GitHub Desktop.
Save wnas/f2210aa2a6f9f52255f497268ad4670d to your computer and use it in GitHub Desktop.
JS Bin// source https://jsbin.com/fazosa
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
div {
width: 100px;
outline: 1px solid red;
margin: 10px;
height: 100px;
opacity: 0;
transition: opacity 2s;
}
div:target {
opacity: 1;
}
</style>
</head>
<body>
<a href="#foo" id="bar">bar</a>
<a href="#">close</a>
<div id="foo">div foo</div>
<script id="jsbin-source-css" type="text/css">div {
width: 100px;
outline: 1px solid red;
margin: 10px;
height: 100px;
opacity: 0;
transition: opacity 2s;
}
div:target {
opacity: 1;
}</script>
</body>
</html>
div {
width: 100px;
outline: 1px solid red;
margin: 10px;
height: 100px;
opacity: 0;
transition: opacity 2s;
}
div:target {
opacity: 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment