corrade-http-templates – Blame information for rev 62
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
62 | office | 1 | <!doctype html> |
2 | <html lang="en"> |
||
3 | <head> |
||
4 | <meta charset="utf-8"> |
||
5 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
||
6 | <title>jQuery UI Effects - addClass demo</title> |
||
7 | <link rel="stylesheet" href="../../themes/base/all.css"> |
||
8 | <link rel="stylesheet" href="../demos.css"> |
||
9 | <style> |
||
10 | .toggler { width: 500px; height: 200px; position: relative; } |
||
11 | #button { padding: .5em 1em; text-decoration: none; } |
||
12 | #effect { width: 240px; padding: 1em; border: 1px solid #000; background: #eee; color: #333; } |
||
13 | .newClass { text-indent: 40px; letter-spacing: .4em; width: 410px; height: 120px; padding: 30px; margin: 10px; font-size: 1.1em; } |
||
14 | </style> |
||
15 | <script src="../../external/requirejs/require.js"></script> |
||
16 | <script src="../bootstrap.js"> |
||
17 | $( "#button" ).on( "click", function() { |
||
18 | $( "#effect" ).addClass( "newClass", 1000, callback ); |
||
19 | }); |
||
20 | |||
21 | function callback() { |
||
22 | setTimeout(function() { |
||
23 | $( "#effect" ).removeClass( "newClass" ); |
||
24 | }, 1500 ); |
||
25 | } |
||
26 | </script> |
||
27 | </head> |
||
28 | <body> |
||
29 | |||
30 | <div class="toggler"> |
||
31 | <div id="effect" class="ui-corner-all"> |
||
32 | Etiam libero neque, luctus a, eleifend nec, semper at, lorem. Sed pede. |
||
33 | </div> |
||
34 | </div> |
||
35 | |||
36 | <button id="button" class="ui-state-default ui-corner-all">Run Effect</button> |
||
37 | |||
38 | <div class="demo-description"> |
||
39 | <p>This demo adds a class which animates: text-indent, letter-spacing, width, height, padding, margin, and font-size.</p> |
||
40 | </div> |
||
41 | </body> |
||
42 | </html> |