Split em up!

Inspired from a Pen on codepen which had the same functionality but with too much of JS to calculate and split the blocks into further pieces!
I took advantage of CSS along with jQuery to make the same PEN in a few lines.

Code and the splitting effect! Click as many squares as you can..
See the Pen Break the block! by Jones Vinoth Joseph (@jo_Geek) on CodePen.
P.S. The original PEN used images. Being a lazy bone i just put background colors instead of images..

Comments

Popular posts from this blog

Pure CSS responsive Navbar

Pure CSS Collpasible Accordion