html5 clicker game

In this example below you will see how to do a html5 clicker game with some HTML / CSS and Javascript

Thumbnail
This awesome code was written by Kaelnukem, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright Kaelnukem ©
  • HTML
  • CSS
  • JavaScript
    <button id="money" onclick="addMoney()">Money$</button>

<h1 id="currentMoney"></h1>

/*Downloaded from https://www.codeseek.co/Kaelnukem/html5-clicker-game-YQWJpE */
    body {
   color: #fff;
  background: #17181c;
  font: 300 1em 'Fira Sans', sans-serif;
  justify-content: center;
  align-content: center;
  align-items: center;
  text-align: center;
  min-height: 100vh;
  display: flex;
 user-select: none;
  
  
}


#money {
   background: hsl(227, 10%, 10%);
  border: 2px solid;
  font: inherit;
  line-height: 1;
  margin: 0.5em;
  padding: 1em 2em;
 user-select: none;
  --color: #ef6eae;
  --hover: #ef8f6e;
  
}

button {
  color: var(--color);
  transition: 0.5s;
  
  user-select: none;
}

button:hover, button:focus {
  user-select: none;
  color: green;
}


/*Downloaded from https://www.codeseek.co/Kaelnukem/html5-clicker-game-YQWJpE */
    


Comments