- To begin, it's important to understand that there is no actual 3D element here. These images are all pre-rendered. The highlighted areas are created in a design software like Photoshop as separate layers.
- Next, you'll need to set up an area that can respond to mouse hover. One way to achieve this is by using the traditional HTML image map markup. This involves drawing a polygon that covers the same area as your highlighted images.
This will result in something similar to the following:
<map name="image-maps-2015-02-15-031753" id="ImageMapsCom-image-maps-2015-02-15-031753">
<area alt="" href="#" title="" shape="poly" coords="52,99,101,49,172,21,267,21,317,93,302,127,268,63,194,73,129,89,74,115,49,132" style="outline:none;" target="_self" />
</map>
Lastly, you'll need some JavaScript to handle the action of "showing the highlight image when hovering over the area". If you're using jQuery, attaching a mouseenter event to the map element can accomplish this easily;
$('map').on('mouseenter', function () {
$('#highlight').show();
})
$('map').on('mouseleave', function () {
$('#highlight').hide();
})
FULL DEMO: http://jsfiddle.net/pggyq4t8/2/ (hover over the top floor)