| 1 | <!doctype html> |
| 2 | <html lang="en"> |
| 3 | <head> |
| 4 | <meta charset="utf-8"> |
| 5 | <title>Tooltip Visual Test: Animations</title> |
| 6 | <link rel="stylesheet" href="../../../themes/base/all.css"> |
| 7 | <style> |
| 8 | pre { |
| 9 | width: 250px; |
| 10 | border: 1px solid #000; |
| 11 | padding: .5em; |
| 12 | } |
| 13 | </style> |
| 14 | <script src="../../../external/requirejs/require.js"></script> |
| 15 | <script src="../../../demos/bootstrap.js" |
| 16 | data-modules="effect effect-explode effect-bounce effect-blind effect-drop"> |
| 17 | $( "pre" ).each(function( index, elem ) { |
| 18 | $( elem ) |
| 19 | .attr( "title", "animated tooltips" ) |
| 20 | .tooltip( JSON.parse( $( elem ).text() ) ); |
| 21 | }); |
| 22 | </script> |
| 23 | </head> |
| 24 | <body> |
| 25 | |
| 26 | <pre>{}</pre> |
| 27 | <pre>{ |
| 28 | "show": { |
| 29 | "effect": "slideDown" |
| 30 | }, |
| 31 | "hide": { |
| 32 | "effect": "slideUp" |
| 33 | } |
| 34 | }</pre> |
| 35 | <pre>{ |
| 36 | "show": { |
| 37 | "effect": "explode" |
| 38 | }, |
| 39 | "hide": { |
| 40 | "effect": "explode" |
| 41 | } |
| 42 | }</pre> |
| 43 | <pre>{ |
| 44 | "show": { |
| 45 | "effect": "bounce" |
| 46 | }, |
| 47 | "hide": { |
| 48 | "effect": "blind" |
| 49 | } |
| 50 | }</pre> |
| 51 | <pre>{ |
| 52 | "show": { |
| 53 | "effect": "drop", |
| 54 | "direction": "right" |
| 55 | }, |
| 56 | "hide": { |
| 57 | "effect": "drop", |
| 58 | "direction": "right" |
| 59 | } |
| 60 | }</pre> |
| 61 | |
| 62 | </body> |
| 63 | </html> |