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

This commit is contained in:
Richard Worth 2008-12-31 21:18:06 +00:00
parent 5cad1621a2
commit 9569feca26
10 changed files with 433 additions and 3 deletions

47
demos/effects/blind.html Normal file
View File

@ -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>

47
demos/effects/clip.html Normal file
View File

@ -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>

View File

@ -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>

47
demos/effects/drop.html Normal file
View File

@ -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>

View File

@ -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>

47
demos/effects/fold.html Normal file
View File

@ -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>

View File

@ -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>

47
demos/effects/puff.html Normal file
View File

@ -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>

47
demos/effects/scale.html Normal file
View File

@ -0,0 +1,47 @@
<!doctype html>
<html lang="en">
<head>
<title>jQuery UI Effects - Scale 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; }
#scale { width: 240px; height: 135px; padding: 0.4em; }
#scale h3 { margin: 0; padding: 0.4em; text-align: center; }
</style>
<script type="text/javascript">
$(function() {
$(".toggler").click(function() {
$("> :eq(0)", this).toggle("scale");
});
});
</script>
</head>
<body>
<div class="demo">
<div class="toggler">
<div id="scale" class="ui-widget-content ui-corner-all">
<h3 class="ui-widget-header ui-corner-all">Scale</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("scale")</code> effect. You can click again to see the <code>.show("scale")</code> effect.
</p>
</div><!-- End demo-description -->
</body>
</html>

47
demos/effects/slide.html Normal file
View File

@ -0,0 +1,47 @@
<!doctype html>
<html lang="en">
<head>
<title>jQuery UI Effects - Slide 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.slide.js"></script>
<link type="text/css" href="../demos.css" rel="stylesheet" />
<style type="text/css">
.toggler { width: 500px; height: 300px; }
#slide { width: 240px; height: 135px; padding: 0.4em; }
#slide h3 { margin: 0; padding: 0.4em; text-align: center; }
</style>
<script type="text/javascript">
$(function() {
$(".toggler").click(function() {
$("> :eq(0)", this).toggle("slide");
});
});
</script>
</head>
<body>
<div class="demo">
<div class="toggler">
<div id="slide" class="ui-widget-content ui-corner-all">
<h3 class="ui-widget-header ui-corner-all">Slide</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("slide")</code> effect. You can click again to see the <code>.show("slide")</code> effect.
</p>
</div><!-- End demo-description -->
</body>
</html>