MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / jump

Function jump

assets/js/dinosaur.js:4–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2const block = document.querySelector(".cactus");
3
4const jump = () => {
5
6 character.classList.add('animate');
7 setTimeout(function() {
8 character.classList.remove('animate')
9 }, 500)
10}
11
12var checkDead = setInterval(function() {
13 var blockleft = parseInt(window.getComputedStyle(block).getPropertyValue("left"));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected