Very seriously presented by the
Techies Lab
content and structure
style and appearence
animations
+ browser
In Sublime Text, right-click on the name of the folder
and add a new Javascript file named
animation.js
Let's link our javascript (JS) file to our HTML file
<head>
<title>Bob ze Cat</title>
<meta charset="utf-8"/>
<link rel="stylesheet" href="style.css">
<script type="text/javascript" src="animation.js"></script>
</head>
<button id="weirdbutton" onmouseover="hide()">CLICK ME</button>
In our index.html file
function hide() {
var button = document.getElementById('weirdbutton');
button.style.display = 'none';
setTimeout(function(){ button.style.display = 'initial';}, 1000);
}
In our animation.js file