Layout a grid of skill patches.
npm install diy/skill-hex-grid
var g = grid(document.querySelector('.grid-wrapper'), { skills: skills.map(function (s) {
return {
img: {
src: s.images.large,
alt: s.title + ' Badge'
},
href: '/skills/' + s.url
};
}) });
g.enable();
Returns an instance of SkillHexGrid
which is a wrapper for
hex-grid.
var options = {
skills: [],
offset: {
x: 0,
y: 0
}
}
Disables mouseenter and mouseleave interactions.
Enables mouseenter and mouseleave interactions.