src/cm/media/js/lib/yui/yui_3.10.3/docs/transition/transition-view.html
changeset 525 89ef5ed3c48b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/cm/media/js/lib/yui/yui_3.10.3/docs/transition/transition-view.html	Tue Jul 16 14:29:46 2013 +0200
@@ -0,0 +1,255 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+    <meta charset="utf-8">
+    <title>Example: Showing and Hiding with Transitions</title>
+    <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=PT+Sans:400,700,400italic,700italic">
+    <link rel="stylesheet" href="../../build/cssgrids/cssgrids-min.css">
+    <link rel="stylesheet" href="../assets/css/main.css">
+    <link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
+    <link rel="shortcut icon" type="image/png" href="../assets/favicon.png">
+    <script src="../../build/yui/yui-min.js"></script>
+    
+</head>
+<body>
+<!--
+<a href="https://github.com/yui/yui3"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub"></a>
+-->
+<div id="doc">
+    <div id="hd">
+        <h1><img src="http://yuilibrary.com/img/yui-logo.png"></h1>
+    </div>
+    
+
+            <h1>Example: Showing and Hiding with Transitions</h1>
+    <div class="yui3-g">
+        <div class="yui3-u-3-4">
+            <div id="main">
+                <div class="content"><style scoped>
+div.demo {
+    margin: 1em 0;
+    width: 300px;
+    background-color: #B6BFDA;
+    border: 1px solid #7E869D;
+    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.25);
+    border-radius: 3px;
+}
+
+div.demo p {
+    padding: 1em;
+    zoom:1;
+}
+</style>
+<div class="intro">
+    <p>This example shows how to show and hide Node instances.</p>
+</div>
+
+<div class="example">
+<button id="hide" class="yui3-button">hide</button>
+<button id="show" class="yui3-button">show</button>
+
+<div class="demo"><p>lorem ipsum dolor sit</p></div>
+
+<script type="text/javascript">
+YUI().use('transition', 'node-event-delegate', 'cssbutton', function(Y) {
+    Y.delegate('click', function(e) {
+        var buttonID = e.currentTarget.get('id'),
+            node = Y.one('.demo');
+            
+        if (buttonID === 'show') {
+            node.show(true);
+        } else if (buttonID == 'hide') {
+            node.hide(true);
+        }
+
+    }, document, 'button');
+});
+</script>
+
+</div>
+
+<h2>Showing a Node</h2>
+<p>The view of a Node instance can be transitioned by passing <code>true</code> to the <code>show</code> and <code>hide</code> methods.</p>
+
+<pre class="code prettyprint">Y.one(&#x27;.demo&#x27;).show(true);</pre>
+
+
+<h2>Hiding a Node</h2>
+<p>The opposite of <code>show</code>, the <code>hide</code> method sets the node's CSS <code>display</code> property to <code>none</code>.</p>
+
+<pre class="code prettyprint">Y.one(&#x27;.demo&#x27;).hide(true);</pre>
+
+
+<h2>Complete Example Source</h2>
+<pre class="code prettyprint">&lt;button id=&quot;hide&quot; class=&quot;yui3-button&quot;&gt;hide&lt;&#x2F;button&gt;
+&lt;button id=&quot;show&quot; class=&quot;yui3-button&quot;&gt;show&lt;&#x2F;button&gt;
+
+&lt;div class=&quot;demo&quot;&gt;&lt;p&gt;lorem ipsum dolor sit&lt;&#x2F;p&gt;&lt;&#x2F;div&gt;
+
+&lt;script type=&quot;text&#x2F;javascript&quot;&gt;
+YUI().use(&#x27;transition&#x27;, &#x27;node-event-delegate&#x27;, &#x27;cssbutton&#x27;, function(Y) {
+    Y.delegate(&#x27;click&#x27;, function(e) {
+        var buttonID = e.currentTarget.get(&#x27;id&#x27;),
+            node = Y.one(&#x27;.demo&#x27;);
+            
+        if (buttonID === &#x27;show&#x27;) {
+            node.show(true);
+        } else if (buttonID == &#x27;hide&#x27;) {
+            node.hide(true);
+        }
+
+    }, document, &#x27;button&#x27;);
+});
+&lt;&#x2F;script&gt;</pre>
+
+</div>
+            </div>
+        </div>
+
+        <div class="yui3-u-1-4">
+            <div class="sidebar">
+                
+
+                
+                    <div class="sidebox">
+                        <div class="hd">
+                            <h2 class="no-toc">Examples</h2>
+                        </div>
+
+                        <div class="bd">
+                            <ul class="examples">
+                                
+                                    
+                                        <li data-description="Demonstrates the basic usage of Transitions.">
+                                            <a href="transition-basic.html">Basic Node Transitions</a>
+                                        </li>
+                                    
+                                
+                                    
+                                        <li data-description="Demonstrates more advanced usage of Transitions.">
+                                            <a href="transition-usage.html">Using Transitions</a>
+                                        </li>
+                                    
+                                
+                                    
+                                        <li data-description="Demonstrates how to animate Node&#x27;s show and hide methods.">
+                                            <a href="transition-view.html">Showing and Hiding with Transitions</a>
+                                        </li>
+                                    
+                                
+                                    
+                                
+                                    
+                                
+                                    
+                                
+                                    
+                                
+                                    
+                                
+                                    
+                                
+                                    
+                                
+                            </ul>
+                        </div>
+                    </div>
+                
+
+                
+                    <div class="sidebox">
+                        <div class="hd">
+                            <h2 class="no-toc">Examples That Use This Component</h2>
+                        </div>
+
+                        <div class="bd">
+                            <ul class="examples">
+                                
+                                    
+                                
+                                    
+                                
+                                    
+                                
+                                    
+                                        <li data-description="Shows how to create a panel that animates as it is shown and hidden">
+                                            <a href="../panel/panel-animate.html">Creating an Animated Panel</a>
+                                        </li>
+                                    
+                                
+                                    
+                                        <li data-description="This example employs AsyncQueue to incrementally construct an application interface; this illustrates the approach you&#x27;d take to allow chunked rendering of the UI in a process-intensive application.">
+                                            <a href="../async-queue/queue-app.html">Building a UI with AsyncQueue</a>
+                                        </li>
+                                    
+                                
+                                    
+                                        <li data-description="Extend the Promise class to create your own Node plugin that chains transitions">
+                                            <a href="../promise/plugin-example.html">Creating a Node Plugin that chains transitions</a>
+                                        </li>
+                                    
+                                
+                                    
+                                        <li data-description="Create a reusable JSONPRequest object to poll the YUILibrary.com Gallery web service, fetching info on a random Gallery module.">
+                                            <a href="../jsonp/jsonp-gallery.html">Reusing a JSONPRequest Instance to Poll a Remote Server</a>
+                                        </li>
+                                    
+                                
+                                    
+                                        <li data-description="NodeList provides Node functionality for manipulating multiple nodes at once.">
+                                            <a href="../node/nodelist.html">Using NodeList - Simple</a>
+                                        </li>
+                                    
+                                
+                                    
+                                        <li data-description="How to use multiple NodeList features to build a simple game.">
+                                            <a href="../node/ducks.html">Using NodeList - Ducks Game</a>
+                                        </li>
+                                    
+                                
+                                    
+                                        <li data-description="This example demonstrates how to insert content into a Node.">
+                                            <a href="../node/node-insert.html">Adding Node Content - Burger Builder</a>
+                                        </li>
+                                    
+                                
+                            </ul>
+                        </div>
+                    </div>
+                
+            </div>
+        </div>
+    </div>
+</div>
+
+<script src="../assets/vendor/prettify/prettify-min.js"></script>
+<script>prettyPrint();</script>
+
+<script>
+YUI.Env.Tests = {
+    examples: [],
+    project: '../assets',
+    assets: '../assets/transition',
+    name: 'transition-view',
+    title: 'Showing and Hiding with Transitions',
+    newWindow: '',
+    auto:  false 
+};
+YUI.Env.Tests.examples.push('transition-basic');
+YUI.Env.Tests.examples.push('transition-usage');
+YUI.Env.Tests.examples.push('transition-view');
+YUI.Env.Tests.examples.push('panel-animate');
+YUI.Env.Tests.examples.push('queue-app');
+YUI.Env.Tests.examples.push('plugin-example');
+YUI.Env.Tests.examples.push('jsonp-gallery');
+YUI.Env.Tests.examples.push('nodelist');
+YUI.Env.Tests.examples.push('ducks');
+YUI.Env.Tests.examples.push('node-insert');
+
+</script>
+<script src="../assets/yui/test-runner.js"></script>
+
+
+
+</body>
+</html>