Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>In my opinion, the more elegant solution would be to use CSS3 animation instead of jQuery (<a href="http://tinkerbin.com/8sLpzuzM" rel="nofollow">see Tinkerbin</a>):</p> <pre><code>&lt;svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="956px" height="745px" &gt; &lt;style type="text/css"&gt; a &gt; image { opacity: 0; pointer-events:none; transition: opacity .25s ease-in-out; -moz-transition: opacity .25s ease-in-out; -webkit-transition: opacity .25s ease-in-out; } a &gt; polygon { opacity:0; } a:hover &gt; image { pointer-events:auto; display:inline; opacity: 1; } &lt;/style&gt; &lt;image x="0" y="0" width="956" height="745" xlink:href="http://www.kollegetown.com/themes/kollegetown/images/img1.jpg" /&gt; &lt;!-- stadium/team --&gt; &lt;a xlink:href="/team" target="new"&gt; &lt;image id="team" x="63" y="284" width="204" height="365" xlink:href="http://www.kollegetown.com/themes/kollegetown/images/homeRollover_team.jpg"/&gt; &lt;polygon points="189 383, 185 345, 155 316, 209 281, 211 244, 289 210, 291 241, 348 245, 397 290, 391 299, 344 276, 345 369, 365 385, 330 404, 313 438"/&gt; &lt;/a&gt; &lt;!-- corporate --&gt; &lt;a xlink:href="/corporate" target="new"&gt; &lt;image id="corp" x="33" y="29" width="356" height="221" xlink:href="http://www.kollegetown.com/themes/kollegetown/images/homeRollover_corporate.jpg"/&gt; &lt;polygon points="18 126, 86 125, 186 180, 190 271, 99 327, 31 330, 18 321"/&gt; &lt;/a&gt; &lt;!-- campus shops --&gt; &lt;a xlink:href="/campusbooster" target="new"&gt; &lt;image id="shops" x="423" y="186" width="497" height="213" xlink:href="http://www.kollegetown.com/themes/kollegetown/images/homeRollover_shops.jpg"/&gt; &lt;polygon points="425 60, 427 209, 470 226, 469 246, 483 251, 506 235, 534 244, 595 214, 600 191, 612 188, 621 201, 633 196, 631 23, 624 17, 504 17"/&gt; &lt;/a&gt; &lt;!-- art gallery / design --&gt; &lt;a xlink:href="/designs" target="new"&gt; &lt;image id="design" x="496" y="407" width="331" height="321" xlink:href="http://www.kollegetown.com/themes/kollegetown/images/homeRollover_gallery.jpg"/&gt; &lt;polygon points="503 509, 438 547, 440 691, 481 710, 482 729, 647 729, 647 582"/&gt; &lt;/a&gt; &lt;/svg&gt; </code></pre> <p>There is a glitch with Opera, it does not make the overly images sensitive for mouse events on hover. But the user can still click on the building to follow the link. Couldn't test IE9 (problems with my Win7 Notebook).</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload