Domanda

On d3.js homepage, http://d3js.org/, any source code or examples on how the interactive hexagons are created? In particular, I have a set of photos and I'd like to create the same effect. i.e. on mouse hover, the tiles move a little and the hovered tile is highlighted.

È stato utile?

Soluzione

If you look at the html source code, they use d3.js (of course) and d3hexbin.js, which is a library able to create and animate hexagons.

You can take a look on the code used in this page (thanks to dev tools) to learn how they use it.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top