<!DOCTYPE html>
<html>
<head>
<title>Animation</title>
<script type="text/javascript" charset="utf-8">
// Once the page is loaded
// Every n milliseconds
// If the logo is not all the way to the right
// move the logo right 1px
// If the logo is not all thw way to the left
// move the logo left 1px
function animate() {
console.log("animate");
};
// setInterval(function() {
// }, 10)
window.onload = animate;
</script>
</head>
<body onload="animate()">
<img src="ga.jpg" width="150" height="150">
</body>
</html>
Last active
December 20, 2015 05:58
-
-
Save laurenhavertz/6081879 to your computer and use it in GitHub Desktop.
JS/CSS RESOURCES
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment