Make a game only with HTML and CSS
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
index.html
style.min.css
style.scss

README.md

css-counter

Make a game only with HTML and CSS

alt tag

body { counter-reset: game; }

Inicializamos a 0 la variable 'game' dentro del ambito de 'body'.

.total-count::after { content: counter(game); }

Mostramos el valor de la variable 'game' dentro de 'total-count'.

.inner-check::checked { counter-increment: game 20; }

Si este elemento existe. Es decir el input 'inner-check' esta en modo 'checked' incrementará la variable 'game' en 20.