<script type="text/javascript" src="../../ui/jquery.effects.clip.js"></script>
<script type="text/javascript" src="../../ui/jquery.effects.drop.js"></script>
<script type="text/javascript" src="../../ui/jquery.effects.explode.js"></script>
+ <script type="text/javascript" src="../../ui/jquery.effects.fade.js"></script>
<script type="text/javascript" src="../../ui/jquery.effects.fold.js"></script>
<script type="text/javascript" src="../../ui/jquery.effects.highlight.js"></script>
<script type="text/javascript" src="../../ui/jquery.effects.pulsate.js"></script>
</div>
</li>
+ <li>
+ <div class="effect" id="fade">
+ <p>Fade</p>
+ </div>
+ </li>
+
<li>
<div class="effect" id="fold">
<p>Fold</p>
effect("#explode9", "explode", {});
effect("#explode36", "explode", { pieces: 36 });
+ effect("#fade", "fade", {});
+
effect("#fold", "fold", { size: 50 });
effect("#highlight", "highlight", {});
$(this).addClass(function() {
window.console && console.log(arguments);
return "current";
- }, 1000, function() {
+ }, duration, function() {
$(this).removeClass("current");
});
});
$(this).addClass("current").removeClass(function() {
window.console && console.log(arguments);
return "current"
- }, 1000);
+ }, duration);
});
$("#toggleClass").click(function() {
$(this).toggleClass(function() {
window.console && console.log(arguments);
return "current"
- }, 1000);
+ }, duration);
});
});