1 | <!doctype html> |
---|
2 | <html lang="en"> |
---|
3 | <head> |
---|
4 | <title>Expander - Animation</title> |
---|
5 | <meta charset="utf-8" /> |
---|
6 | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> |
---|
7 | <meta name="description" content="%description%" /> |
---|
8 | <meta name="keywords" content="" /> |
---|
9 | <meta name="author" content="ComponentOne" /> |
---|
10 | |
---|
11 | <link href="../../themes/rocket/jquery-wijmo.css" rel="stylesheet" type="text/css" /> |
---|
12 | |
---|
13 | <script src="../../external/jquery-1.8.0.min.js" type="text/javascript"></script> |
---|
14 | <script src="../../external/jquery-ui-1.8.23.custom.min.js" type="text/javascript"></script> |
---|
15 | <link type="text/css" href="../../themes/wijmo/jquery.wijmo.wijutil.css" rel="stylesheet" /> |
---|
16 | <link type="text/css" href="../../themes/wijmo/jquery.wijmo.wijexpander.css" rel="stylesheet" /> |
---|
17 | <script src="../../wijmo/jquery.wijmo.wijutil.js" type="text/javascript"></script> |
---|
18 | <script type="text/javascript" src="../../wijmo/jquery.wijmo.wijexpander.js"></script> |
---|
19 | <script id="scriptInit" type="text/javascript"> |
---|
20 | $(document).ready(function () { |
---|
21 | $("#expander").wijexpander(); |
---|
22 | |
---|
23 | $("#expander2").wijexpander({ |
---|
24 | animated: "custom1", expanded: false |
---|
25 | }); |
---|
26 | $("#expander3").wijexpander({ |
---|
27 | animated: "custom2" |
---|
28 | }); |
---|
29 | $("#expander4").wijexpander({ |
---|
30 | animated: false |
---|
31 | }); |
---|
32 | jQuery.wijmo.wijexpander.animations.custom1 = function (options) { |
---|
33 | this.slide(options, { |
---|
34 | easing: "easeOutExpo", |
---|
35 | duration: 900 |
---|
36 | }); |
---|
37 | } |
---|
38 | jQuery.wijmo.wijexpander.animations.custom2 = function (options) { |
---|
39 | if (options.expand) |
---|
40 | options.content.show("puff", options, 300); |
---|
41 | else |
---|
42 | options.content.hide("explode", options, 300); |
---|
43 | } |
---|
44 | }); |
---|
45 | </script> |
---|
46 | </head> |
---|
47 | <body class="demo-single"> |
---|
48 | <div class="container"> |
---|
49 | <div class="header"> |
---|
50 | <h2> |
---|
51 | Animation</h2> |
---|
52 | </div> |
---|
53 | <div class="main demo"> |
---|
54 | <!-- Begin demo markup --> |
---|
55 | <h4> |
---|
56 | Default expander animation</h4> |
---|
57 | <div id="expander"> |
---|
58 | <h3> |
---|
59 | Header</h3> |
---|
60 | <div> |
---|
61 | Vestibulum ut eros non enim commodo hendrerit. Donec porttitor tellus |
---|
62 | non magna. Nam ligula elit, pretium et, rutrum non, hendrerit id, ante. Nunc mauris |
---|
63 | sapien, cursus in. |
---|
64 | </div> |
---|
65 | </div> |
---|
66 | <h4> |
---|
67 | Custom expander animation</h4> |
---|
68 | <div id="expander2"> |
---|
69 | <div> |
---|
70 | Header</div> |
---|
71 | <div> |
---|
72 | Vestibulum ut eros non enim commodo hendrerit. Donec porttitor tellus |
---|
73 | non magna. Nam ligula elit, pretium et, rutrum non, hendrerit id, ante. Nunc mauris |
---|
74 | sapien, cursus in. |
---|
75 | </div> |
---|
76 | </div> |
---|
77 | <h4> |
---|
78 | Custom animation using jQuery effects</h4> |
---|
79 | <div id="expander3"> |
---|
80 | <div> |
---|
81 | Header</div> |
---|
82 | <div> |
---|
83 | Vestibulum ut eros non enim commodo hendrerit. Donec porttitor tellus |
---|
84 | non magna. Nam ligula elit, pretium et, rutrum non, hendrerit id, ante. Nunc mauris |
---|
85 | sapien, cursus in. |
---|
86 | </div> |
---|
87 | </div> |
---|
88 | <h4> |
---|
89 | Disabled animation</h4> |
---|
90 | <div id="expander4"> |
---|
91 | <div> |
---|
92 | Header</div> |
---|
93 | <div> |
---|
94 | Vestibulum ut eros non enim commodo hendrerit. Donec porttitor tellus |
---|
95 | non magna. Nam ligula elit, pretium et, rutrum non, hendrerit id, ante. Nunc mauris |
---|
96 | sapien, cursus in. |
---|
97 | </div> |
---|
98 | </div> |
---|
99 | <!-- End demo markup --> |
---|
100 | <div class="demo-options"> |
---|
101 | <!-- Begin options markup --> |
---|
102 | <!-- End options markup --> |
---|
103 | </div> |
---|
104 | </div> |
---|
105 | <div class="footer demo-description"> |
---|
106 | <p> |
---|
107 | This sample shows several of the available animation effects that can be set using the animated option. |
---|
108 | </p> |
---|
109 | </div> |
---|
110 | </div> |
---|
111 | </body> |
---|
112 | </html> |
---|