Last active
August 15, 2017 13:48
-
-
Save wnas/f2210aa2a6f9f52255f497268ad4670d to your computer and use it in GitHub Desktop.
JS Bin// source https://jsbin.com/fazosa
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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