source: ether_megapoli/trunk/web/resources/js/jquery-ui-1.8.16.custom/development-bundle/demos/animate/default.html @ 236

Last change on this file since 236 was 236, checked in by vmipsl, 13 years ago

jQuery

  • calendrier ok
  • window ok
File size: 1.5 KB
Line 
1<!DOCTYPE html>
2<html lang="en">
3<head>
4        <meta charset="utf-8">
5        <title>jQuery UI Effects - Animate demo</title>
6        <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
7        <script src="../../jquery-1.6.2.js"></script>
8        <script src="../../ui/jquery.effects.core.js"></script>
9        <link rel="stylesheet" href="../demos.css">
10        <style>
11                .toggler { width: 500px; height: 200px; position: relative; }
12                #button { padding: .5em 1em; text-decoration: none; }
13                #effect { width: 240px; height: 135px; padding: 0.4em; position: relative; background: #fff; }
14                #effect h3 { margin: 0; padding: 0.4em; text-align: center; }
15        </style>
16        <script>
17        $(function() {
18                $( "#button" ).toggle(
19                        function() {
20                                $( "#effect" ).animate({
21                                        backgroundColor: "#aa0000",
22                                        color: "#fff",
23                                        width: 500
24                                }, 1000 );
25                        },
26                        function() {
27                                $( "#effect" ).animate({
28                                        backgroundColor: "#fff",
29                                        color: "#000",
30                                        width: 240
31                                }, 1000 );
32                        }
33                );
34        });
35        </script>
36</head>
37<body>
38
39<div class="demo">
40
41<div class="toggler">
42        <div id="effect" class="ui-widget-content ui-corner-all">
43                <h3 class="ui-widget-header ui-corner-all">Animate</h3>
44                <p>
45                        Etiam libero neque, luctus a, eleifend nec, semper at, lorem. Sed pede. Nulla lorem metus, adipiscing ut, luctus sed, hendrerit vitae, mi.
46                </p>
47        </div>
48</div>
49
50<a href="#" id="button" class="ui-state-default ui-corner-all">Toggle Effect</a>
51
52</div><!-- End demo -->
53
54
55
56<div class="demo-description">
57<p>Click the button above to preview the effect.</p>
58</div><!-- End demo-description -->
59
60</body>
61</html>
Note: See TracBrowser for help on using the repository browser.