Вопрос

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