I made a game as a web component using vanilla JS to facilitate dynamic CSS and HTML. This slider puzzle can be placed in html with a <slider-puzzle><\slider-puzzle> tag followed by a <script><\script> that either sources or contains the single js file. Hook it up to a hit key or a button and it will open and close over your page without affecting your layout at all. You can turn any image from your device into a puzzle in a snap and can set the difficulty by adjusting the number of tiles the image is split into and the shuffling algorithm handles the rest. Completely portable, no dependencies no frameworks no build needed. Send a like or a comment and I’ll share the code and a walkthrough how I did it. #html #javascript #css JavaScript

To view or add a comment, sign in

Explore content categories