CSS Counters Game Primer Tutorial

CSS Counters Game Primer Tutorial

CSS Counters Game Primer Tutorial

How best to do a tutorial about a CSS feature doing very Javascript’y things? Yes, CSS Counters represents a CSS way to create dynamic content, which is usually the domain of Javascript scripting, as a lot of you would know.

We decided to do this by designing a rudimentary Social Distancing Squares Game where …

  • a webpage is initiated with the first such square … and then …
  • any other squares are located where the user clicks them (at their top left) … and …
  • as far as scoring goes …
    1. a numbered (via CSS Counters) square (perhaps linked to a Name entered in by the user) can score positively by keeping a respectably small distance from others … but …
    2. a numbered square can score negatively if too close to another square
    3. a numbered square score will not change if “out of the loop” too far away from another

… so containing a modicum of “tactics scope” (yet, mainly luck), for flying_number_div.html‘s live run link. Pretty obviously, it would be a doddle for Javascript to do what the CSS Counters are doing, but that is not the point of learning new approaches and ways of achieving HTML content.

If this was interesting you may be interested in this too.

This entry was posted in eLearning, Tutorials and tagged , , , , , , , , . Bookmark the permalink.

One Response to CSS Counters Game Primer Tutorial

  1. I was suggested this this page by some one who left a comment at my weblog.this meant i
    had to check it out ….. like thearticlel Thanks!I?ll certainly digg it and personally suggest to my readers,visitors, traffic,subscribers.

    as you have a Great blog here.|

Leave a Reply to cryptocurrency Cancel reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>