repl.it
@nicolaetiberius/

Sprite animation

HTML, CSS, JS

No description

fork
loading
Files
  • index.html
  • flower.png
  • nick flower.png
  • script.js
  • style.css
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width">
    <title>repl.it</title>
    <link href="style.css" rel="stylesheet" type="text/css" />
  </head>
  <body>
    <script src="script.js"></script>


  <div id="demo">
  <p id="image" onmouseover="animateScript()" onmouseout="stopAnimate()">
</p>
</div>
</div>
</div>
  </body>
</html>


https://gamedevelopment.tutsplus.com/tutorials/an-introduction-to-spritesheet-animation--gamedev-13099 

https://github.com/tutsplus/kandi-runner/
result
console