This blog has been moved to the Kinopio Blog Space to make it easier and funner to update. Future updates will be posted there.

Box Snapping

Drag boxes close to each other to snap them together.

Helpful for building simple grids and tables that you can use for illustrating sequences and whatever else

Implementation Notes

This'll make more sense later but I built this as a prerequisite for an upcoming re-positioning/re-launch of Kinopio. To that end – inspired by this computer case assembly guide – I wanted the ability to build a grid for displaying sequences of step-by-step instructions.

As humans we intuitively know when two things are close to each other. But programming closeness presents many little problems, like:

  • What does closeness actually mean? These two boxes have x values that are very similar, but the boxes are not what you'd perceive as close.

I'm using a combination of proximity (the distance between two matching side points, such as the center-left side of one box and the center-right side of another), as well as x or y axis distance. It ends up looking something like this:

  • How should I indicate when boxes are close enough to snap together?

In typical design software, vertical or horizontal snapping guidelines are used to indicate when you can align things.

In the context of Kinopio though, encouraging content to be geometrically aligned or conform to the grid is not the goal. In the context of thinking, feeling like things have to be neat and orderly is oppressive friction.

After a couple public iterations, I made the snapping sides of each box undulate together. It's a very simple ease-in-out animation but I like the impression of yearning that the boxes appear to have for each other – it's pretty cool/romantic.