-
-
Save codecademydev/2241f76f599a267e867d472db62e5b80 to your computer and use it in GitHub Desktop.
Codecademy export
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