Skip to content
Permalink
Browse files

demos/effects: Added show/hide/toggle effect demos

  • Loading branch information...
rdworth committed Dec 31, 2008
1 parent 5cad162 commit 9569feca26d4fb0dda2346ab5cfe1eafc2d154b4
@@ -0,0 +1,47 @@
<!doctype html>
<html lang="en">
<head>
<title>jQuery UI Effects - Blind Demo</title>
<link type="text/css" href="../../themes/default/ui.all.css" rel="stylesheet" />
<script type="text/javascript" src="../../jquery-1.2.6.js"></script>
<script type="text/javascript" src="../../ui/effects.core.js"></script>
<script type="text/javascript" src="../../ui/effects.blind.js"></script>
<link type="text/css" href="../demos.css" rel="stylesheet" />
<style type="text/css">
.toggler { width: 500px; height: 300px; }
#blind { width: 240px; height: 135px; padding: 0.4em; }
#blind h3 { margin: 0; padding: 0.4em; text-align: center; }
</style>
<script type="text/javascript">
$(function() {
$(".toggler").click(function() {
$("> :eq(0)", this).toggle("blind");
});
});
</script>
</head>
<body>

<div class="demo">

<div class="toggler">
<div id="blind" class="ui-widget-content ui-corner-all">
<h3 class="ui-widget-header ui-corner-all">Blind</h3>
<p>
Etiam libero neque, luctus a, eleifend nec, semper at, lorem. Sed pede. Nulla lorem metus, adipiscing ut, luctus sed, hendrerit vitae, mi.
</p>
</div>
</div>

</div><!-- End demo -->

<div class="demo-description">

<p>
Click above to preview the <code>.hide("blind")</code> effect. You can click again to see the <code>.show("blind")</code> effect.
</p>

</div><!-- End demo-description -->

</body>
</html>
@@ -0,0 +1,47 @@
<!doctype html>
<html lang="en">
<head>
<title>jQuery UI Effects - Clip Demo</title>
<link type="text/css" href="../../themes/default/ui.all.css" rel="stylesheet" />
<script type="text/javascript" src="../../jquery-1.2.6.js"></script>
<script type="text/javascript" src="../../ui/effects.core.js"></script>
<script type="text/javascript" src="../../ui/effects.clip.js"></script>
<link type="text/css" href="../demos.css" rel="stylesheet" />
<style type="text/css">
.toggler { width: 500px; height: 300px; }
#clip { width: 240px; height: 135px; padding: 0.4em; }
#clip .ui-widget-header { margin: 0; padding: 0.4em; text-align: center; }
</style>
<script type="text/javascript">
$(function() {
$(".toggler").click(function() {
$("> :eq(0)", this).toggle("clip");
});
});
</script>
</head>
<body>

<div class="demo">

<div class="toggler">
<div id="clip" class="ui-widget-content ui-corner-all">
<h3 class="ui-widget-header ui-corner-all">Clip</h3>
<p>
Etiam libero neque, luctus a, eleifend nec, semper at, lorem. Sed pede. Nulla lorem metus, adipiscing ut, luctus sed, hendrerit vitae, mi.
</p>
</div>
</div>

</div><!-- End demo -->

<div class="demo-description">

<p>
Click above to preview the <code>.hide("clip")</code> effect. You can click again to see the <code>.show("clip")</code> effect.
</p>

</div><!-- End demo-description -->

</body>
</html>
@@ -0,0 +1,47 @@
<!doctype html>
<html lang="en">
<head>
<title>jQuery UI Effects - Blind Demo</title>
<link type="text/css" href="../../themes/default/ui.all.css" rel="stylesheet" />
<script type="text/javascript" src="../../jquery-1.2.6.js"></script>
<script type="text/javascript" src="../../ui/effects.core.js"></script>
<script type="text/javascript" src="../../ui/effects.blind.js"></script>
<link type="text/css" href="../demos.css" rel="stylesheet" />
<style type="text/css">
.toggler { width: 500px; height: 300px; }
#blind { width: 240px; height: 135px; padding: 0.4em; }
#blind h3 { margin: 0; padding: 0.4em; text-align: center; }
</style>
<script type="text/javascript">
$(function() {
$(".toggler").click(function() {
$("> :eq(0)", this).toggle("blind");
});
});
</script>
</head>
<body>

<div class="demo">

<div class="toggler">
<div id="blind" class="ui-widget-content ui-corner-all">
<h3 class="ui-widget-header ui-corner-all">Blind</h3>
<p>
Etiam libero neque, luctus a, eleifend nec, semper at, lorem. Sed pede. Nulla lorem metus, adipiscing ut, luctus sed, hendrerit vitae, mi.
</p>
</div>
</div>

</div><!-- End demo -->

<div class="demo-description">

<p>
Click above to preview the <code>.hide("blind")</code> effect. You can click again to see the <code>.show("blind")</code> effect.
</p>

</div><!-- End demo-description -->

</body>
</html>
@@ -0,0 +1,47 @@
<!doctype html>
<html lang="en">
<head>
<title>jQuery UI Effects - Drop Demo</title>
<link type="text/css" href="../../themes/default/ui.all.css" rel="stylesheet" />
<script type="text/javascript" src="../../jquery-1.2.6.js"></script>
<script type="text/javascript" src="../../ui/effects.core.js"></script>
<script type="text/javascript" src="../../ui/effects.drop.js"></script>
<link type="text/css" href="../demos.css" rel="stylesheet" />
<style type="text/css">
.toggler { width: 500px; height: 300px; }
#drop { width: 240px; height: 135px; padding: 0.4em; }
#drop .ui-widget-header { margin: 0; padding: 0.4em; text-align: center; }
</style>
<script type="text/javascript">
$(function() {
$(".toggler").click(function() {
$("> :eq(0)", this).toggle("drop");
});
});
</script>
</head>
<body>

<div class="demo">

<div class="toggler">
<div id="drop" class="ui-widget-content ui-corner-all">
<h3 class="ui-widget-header ui-corner-all">Drop</h3>
<p>
Etiam libero neque, luctus a, eleifend nec, semper at, lorem. Sed pede. Nulla lorem metus, adipiscing ut, luctus sed, hendrerit vitae, mi.
</p>
</div>
</div>

</div><!-- End demo -->

<div class="demo-description">

<p>
Click above to preview the <code>.hide("drop")</code> effect. You can click again to see the <code>.show("drop")</code> effect.
</p>

</div><!-- End demo-description -->

</body>
</html>
@@ -0,0 +1,47 @@
<!doctype html>
<html lang="en">
<head>
<title>jQuery UI Effects - Explode Demo</title>
<link type="text/css" href="../../themes/default/ui.all.css" rel="stylesheet" />
<script type="text/javascript" src="../../jquery-1.2.6.js"></script>
<script type="text/javascript" src="../../ui/effects.core.js"></script>
<script type="text/javascript" src="../../ui/effects.explode.js"></script>
<link type="text/css" href="../demos.css" rel="stylesheet" />
<style type="text/css">
.toggler { width: 500px; height: 300px; }
#explode { width: 240px; height: 135px; padding: 0.4em; }
#explode h3 { margin: 0; padding: 0.4em; text-align: center; }
</style>
<script type="text/javascript">
$(function() {
$(".toggler").click(function() {
$("> :eq(0)", this).toggle("explode");
});
});
</script>
</head>
<body>

<div class="demo">

<div class="toggler">
<div id="explode" class="ui-widget-content ui-corner-all">
<h3 class="ui-widget-header ui-corner-all">Explode</h3>
<p>
Etiam libero neque, luctus a, eleifend nec, semper at, lorem. Sed pede. Nulla lorem metus, adipiscing ut, luctus sed, hendrerit vitae, mi.
</p>
</div>
</div>

</div><!-- End demo -->

<div class="demo-description">

<p>
Click above to preview the <code>.hide("explode")</code> effect. You can click again to see the <code>.show("explode")</code> effect.
</p>

</div><!-- End demo-description -->

</body>
</html>
@@ -0,0 +1,47 @@
<!doctype html>
<html lang="en">
<head>
<title>jQuery UI Effects - Fold Demo</title>
<link type="text/css" href="../../themes/default/ui.all.css" rel="stylesheet" />
<script type="text/javascript" src="../../jquery-1.2.6.js"></script>
<script type="text/javascript" src="../../ui/effects.core.js"></script>
<script type="text/javascript" src="../../ui/effects.fold.js"></script>
<link type="text/css" href="../demos.css" rel="stylesheet" />
<style type="text/css">
.toggler { width: 500px; height: 300px; }
#fold { width: 240px; height: 135px; padding: 0.4em; }
#fold h3 { margin: 0; padding: 0.4em; text-align: center; }
</style>
<script type="text/javascript">
$(function() {
$(".toggler").click(function() {
$("> :eq(0)", this).toggle("fold");
});
});
</script>
</head>
<body>

<div class="demo">

<div class="toggler">
<div id="fold" class="ui-widget-content ui-corner-all">
<h3 class="ui-widget-header ui-corner-all">Fold</h3>
<p>
Etiam libero neque, luctus a, eleifend nec, semper at, lorem. Sed pede. Nulla lorem metus, adipiscing ut, luctus sed, hendrerit vitae, mi.
</p>
</div>
</div>

</div><!-- End demo -->

<div class="demo-description">

<p>
Click above to preview the <code>.hide("fold")</code> effect. You can click again to see the <code>.show("fold")</code> effect.
</p>

</div><!-- End demo-description -->

</body>
</html>
@@ -1,15 +1,22 @@
<!doctype html>
<html lang="en">
<head>
<title>jQuery UI Effect Show/Hide Demos</title>
<title>jQuery UI Effects - Show/Hide Demos</title>
<link type="text/css" href="../demos.css" rel="stylesheet" />
</head>
<body>

<div class="demos-nav">
<h4>Examples</h4>
<h4>Show/Hide and Toggle Effects</h4>
<ul>
<li class="demo-config-on"><a href="default.html">Default</a></li>
<li class="demo-config-on"><a href="default.html">Blind</a></li>
<li><a href="clip.html">Clip</a></li>
<li><a href="drop.html">Drop</a></li>
<li><a href="explode.html">Explode</a></li>
<li><a href="fold.html">Fold</a></li>
<li><a href="puff.html">Puff</a></li>
<li><a href="scale.html">Scale</a></li>
<li><a href="slide.html">Slide</a></li>
</ul>
</div>

@@ -0,0 +1,47 @@
<!doctype html>
<html lang="en">
<head>
<title>jQuery UI Effects - Puff Demo</title>
<link type="text/css" href="../../themes/default/ui.all.css" rel="stylesheet" />
<script type="text/javascript" src="../../jquery-1.2.6.js"></script>
<script type="text/javascript" src="../../ui/effects.core.js"></script>
<script type="text/javascript" src="../../ui/effects.scale.js"></script>
<link type="text/css" href="../demos.css" rel="stylesheet" />
<style type="text/css">
.toggler { width: 500px; height: 300px; }
#puff { width: 240px; height: 135px; padding: 0.4em; }
#puff h3 { margin: 0; padding: 0.4em; text-align: center; }
</style>
<script type="text/javascript">
$(function() {
$(".toggler").click(function() {
$("> :eq(0)", this).toggle("puff");
});
});
</script>
</head>
<body>

<div class="demo">

<div class="toggler">
<div id="puff" class="ui-widget-content ui-corner-all">
<h3 class="ui-widget-header ui-corner-all">Puff</h3>
<p>
Etiam libero neque, luctus a, eleifend nec, semper at, lorem. Sed pede. Nulla lorem metus, adipiscing ut, luctus sed, hendrerit vitae, mi.
</p>
</div>
</div>

</div><!-- End demo -->

<div class="demo-description">

<p>
Click above to preview the <code>.hide("puff")</code> effect. You can click again to see the <code>.show("puff")</code> effect.
</p>

</div><!-- End demo-description -->

</body>
</html>

0 comments on commit 9569fec

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