Skip to content
Permalink
Browse files

Adding fade to the tests

  • Loading branch information...
gnarf committed Mar 6, 2011
1 parent bcb8f7e commit 8ce879e51be564bc9eb906295fd04069ce90a5bc
Showing with 12 additions and 3 deletions.
  1. +7 −0 tests/visual/effects.all.html
  2. +5 −3 tests/visual/effects.all.js
@@ -11,6 +11,7 @@
<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>
@@ -90,6 +91,12 @@
</div>
</li>

<li>
<div class="effect" id="fade">
<p>Fade</p>
</div>
</li>

<li>
<div class="effect" id="fold">
<p>Fold</p>
@@ -49,6 +49,8 @@ $(function() {
effect("#explode9", "explode", {});
effect("#explode36", "explode", { pieces: 36 });

effect("#fade", "fade", {});

effect("#fold", "fold", { size: 50 });

effect("#highlight", "highlight", {});
@@ -71,20 +73,20 @@ $(function() {
$(this).addClass(function() {
window.console && console.log(arguments);
return "current";
}, 1000, function() {
}, duration, function() {
$(this).removeClass("current");
});
});
$("#removeClass").click(function() {
$(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);
});
});

0 comments on commit 8ce879e

Please sign in to comment.
You can’t perform that action at this time.