Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created June 29, 2017 08:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codecademydev/2241f76f599a267e867d472db62e5b80 to your computer and use it in GitHub Desktop.
Save codecademydev/2241f76f599a267e867d472db62e5b80 to your computer and use it in GitHub Desktop.
Codecademy export
<!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>
$(document).ready(function() {
$('button').click(function() {
$('.vanish').fadeout('slow');
});
});
.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