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.

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top