Elements.MultiFade

Keeps full opacity to element that is moused over while dimming all other elements of same class.

by Michael Russell

HTML

<script src="https://rawgithub.com/subhaze/mootools-elements-multifade/master/Source/Elements.MultiFade.js"></script>
<div id="content">
  <div id="link-container">
    <a class="link" href="#"></a>
    <a class="link" href="#"></a>
    <a class="link" href="#"></a>
    <a class="link" href="#"></a>
    <a class="link" href="#"></a>
    <a class="link" href="#"></a>
    <div class="clear-floats"></div>
  </div>
</div>

CSS

#link-container{ margin:0 auto; width:200px; }
  .link { width:50px; height:50px; margin:10px 0 0 10px; display:block; float:left; background-color:#000 }
  /* additional .link styles for modern browsers */
  .link { -moz-border-radius:5px; -webkit-border-radius:5px; border-radius:5px; }

JavaScript

$$('.link').multiFade();