I’ve recently received some help adding in snap-to-grid functionality to my jQuery plugin: jquery.pep.js.
Issue #52 had been open for far too long when a user of the plugin and gave a little insight into some code changes he had made to add in this functionality. The result is flawless.
Here is an example on CodePen which shows just exactly how well it works. Enjoy!
See the Pen [Pep] Demo - grid by Brian Gonzalez (@briangonzalez) on CodePen