Created
May 30, 2013 18:17
-
-
Save A-J-C/5679914 to your computer and use it in GitHub Desktop.
A CodePen by Alex C.
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> | |
<title>Vanishing Act</title> | |
<link rel='stylesheet' type='text/css' href='stylesheet.css'/> | |
<script type='text/javascript' src='script.js'></script> | |
</head> | |
<body> | |
<div class="vanish"></div> | |
<div class="vanish"></div> | |
<div class="vanish"></div> | |
<div class="vanish"></div> | |
<br/><button>Click Me!</button> | |
</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
$(document).ready(function() { | |
$('button').click(function() { | |
$(".vanish").fadeOut('slow'); | |
}); | |
}); |
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
.vanish { | |
height: 100px; | |
width: 100px; | |
display: inline-block; | |
background-color: #F38630; | |
border-radius: 5px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment