Categories
Web development

SVG sprites transforms

Since working with SVG transforms can get difficult, especially setting transform origin, I often use GreenSock to avoid transform trouble. To make a series of icon elements rotate or scale around its center, for example, you could code something like: Here’s a more elaborate example: See the Pen Set SVG sprites transform origin with GreenSock […]

Categories
JavaScript Web development

Bishops Swap Game

The Bishops Swap Game is a classic puzzle from the 7th Guest. Here is the start position of it: The end position is the same, except that the black and white bishops have swapped: the black bishops are on the top row, the white bishops are on the bottom row. Move the bishops to get […]