~jstys-z/helioviewer.org/timeline

« back to all changes in this revision

Viewing changes to lib/jquery/jquery.ui-1.6rc2/demos/functional/templates/ui.effects.easing.html

  • Committer: V. Keith Hughitt
  • Date: 2009-03-26 19:20:57 UTC
  • Revision ID: hughitt1@kore-20090326192057-u0x8rf8sf5lmmnwh
nightly build 03-26-2009: Using alpha-channel JPEG 2000 dataset

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<script type="text/javascript">
2
 
 
3
 
        var model = {
4
 
 
5
 
                renderAt: '#containerDemo',
6
 
 
7
 
                title: 'Easing Effects',
8
 
 
9
 
                demos: [
10
 
 
11
 
                        {
12
 
                                title: 'Easings',
13
 
                                desc: 'Easing is acceleration, a change in speed. Easings control how an animation progresses over time.<br/>' +
14
 
                                        'An ease-in starts slow and then speeds up.<br/>' +
15
 
                                        'An ease-out starts fast and then slows to a stop.<br/>' +
16
 
                                        'An ease-in-out combines the two so that the first half is an ease-in and the second half is an ease-out.',
17
 
                                html: '<button id="doBounce" type="button">Bounce</button><br/><br/>\n' +
18
 
                                        '<div><img id="bounce" src="templates/images/puppy.jpg"/></div>',
19
 
                                destroy: '$("#doBounce").unbind();',
20
 
 
21
 
                                options: [
22
 
                                        {       desc: 'Linear easing',  source: '$("#doBounce").click(function() { $("#bounce").effect("bounce", {easing: "linear", times: 1}, 800); });' },
23
 
                                        {       desc: 'Swing easing',   source: '$("#doBounce").click(function() { $("#bounce").effect("bounce", {easing: "swing", times: 1}, 800); });' },
24
 
                                        {       desc: 'Quadratic ease in',      source: '$("#doBounce").click(function() { $("#bounce").effect("bounce", {easing: "easeInQuad", times: 1}, 800); });' },
25
 
                                        {       desc: 'Quadratic ease out',     source: '$("#doBounce").click(function() { $("#bounce").effect("bounce", {easing: "easeOutQuad", times: 1}, 800); });' },
26
 
                                        {       desc: 'Quadratic ease in out',  source: '$("#doBounce").click(function() { $("#bounce").effect("bounce", {easing: "easeInOutQuad", times: 1}, 800); });' },
27
 
                                        {       desc: 'Cubic ease in',  source: '$("#doBounce").click(function() { $("#bounce").effect("bounce", {easing: "easeInCubic", times: 1}, 800); });' },
28
 
                                        {       desc: 'Cubic ease out', source: '$("#doBounce").click(function() { $("#bounce").effect("bounce", {easing: "easeOutCubic", times: 1}, 800); });' },
29
 
                                        {       desc: 'Cubic ease in out',      source: '$("#doBounce").click(function() { $("#bounce").effect("bounce", {easing: "easeInOutCubic", times: 1}, 800); });' },
30
 
                                        {       desc: 'Quartic ease in',        source: '$("#doBounce").click(function() { $("#bounce").effect("bounce", {easing: "easeInQuart", times: 1}, 800); });' },
31
 
                                        {       desc: 'Quartic ease out',       source: '$("#doBounce").click(function() { $("#bounce").effect("bounce", {easing: "easeOutQuart", times: 1}, 800); });' },
32
 
                                        {       desc: 'Quartic ease in out',    source: '$("#doBounce").click(function() { $("#bounce").effect("bounce", {easing: "easeInOutQuart", times: 1}, 800); });' },
33
 
                                        {       desc: 'Quintic ease in',        source: '$("#doBounce").click(function() { $("#bounce").effect("bounce", {easing: "easeInQuint", times: 1}, 800); });' },
34
 
                                        {       desc: 'Quintic ease out',       source: '$("#doBounce").click(function() { $("#bounce").effect("bounce", {easing: "easeOutQuint", times: 1}, 800); });' },
35
 
                                        {       desc: 'Quintic ease in out',    source: '$("#doBounce").click(function() { $("#bounce").effect("bounce", {easing: "easeInOutQuint", times: 1}, 800); });' },
36
 
                                        {       desc: 'Sinusoidal ease in',     source: '$("#doBounce").click(function() { $("#bounce").effect("bounce", {easing: "easeInSine", times: 1}, 800); });' },
37
 
                                        {       desc: 'Sinusoidal ease out',    source: '$("#doBounce").click(function() { $("#bounce").effect("bounce", {easing: "easeOutSine", times: 1}, 800); });' },
38
 
                                        {       desc: 'Sinusoidal ease in out', source: '$("#doBounce").click(function() { $("#bounce").effect("bounce", {easing: "easeInOutSine", times: 1}, 800); });' },
39
 
                                        {       desc: 'Exponential ease in',    source: '$("#doBounce").click(function() { $("#bounce").effect("bounce", {easing: "easeInExpo", times: 1}, 800); });' },
40
 
                                        {       desc: 'Exponential ease out',   source: '$("#doBounce").click(function() { $("#bounce").effect("bounce", {easing: "easeOutExpo", times: 1}, 800); });' },
41
 
                                        {       desc: 'Exponential ease in out',        source: '$("#doBounce").click(function() { $("#bounce").effect("bounce", {easing: "easeInOutExpo", times: 1}, 800); });' },
42
 
                                        {       desc: 'Circular ease in',       source: '$("#doBounce").click(function() { $("#bounce").effect("bounce", {easing: "easeInCirc", times: 1}, 800); });' },
43
 
                                        {       desc: 'Circular ease out',      source: '$("#doBounce").click(function() { $("#bounce").effect("bounce", {easing: "easeOutCirc", times: 1}, 800); });' },
44
 
                                        {       desc: 'Circular ease in out',   source: '$("#doBounce").click(function() { $("#bounce").effect("bounce", {easing: "easeInOutCirc", times: 1}, 800); });' },
45
 
                                        {       desc: 'Elastic ease in (decaying sine wave)',   source: '$("#doBounce").click(function() { $("#bounce").effect("bounce", {easing: "easeInElastic", times: 1}, 800); });' },
46
 
                                        {       desc: 'Elastic ease out',       source: '$("#doBounce").click(function() { $("#bounce").effect("bounce", {easing: "easeOutElastic", times: 1}, 800); });' },
47
 
                                        {       desc: 'Elastic ease in out',    source: '$("#doBounce").click(function() { $("#bounce").effect("bounce", {easing: "easeInOutElastic", times: 1}, 800); });' },
48
 
                                        {       desc: 'Back ease in (overshooting cubic)',      source: '$("#doBounce").click(function() { $("#bounce").effect("bounce", {easing: "easeInBack", times: 1}, 800); });' },
49
 
                                        {       desc: 'Back ease out',  source: '$("#doBounce").click(function() { $("#bounce").effect("bounce", {easing: "easeOutBack", times: 1}, 800); });' },
50
 
                                        {       desc: 'Back ease in out',       source: '$("#doBounce").click(function() { $("#bounce").effect("bounce", {easing: "easeInOutBack", times: 1}, 800); });' },
51
 
                                        {       desc: 'Bounce ease in (decaying parabolic)',    source: '$("#doBounce").click(function() { $("#bounce").effect("bounce", {easing: "easeInBounce", times: 1}, 800); });' },
52
 
                                        {       desc: 'Bounce ease out',        source: '$("#doBounce").click(function() { $("#bounce").effect("bounce", {easing: "easeOutBounce", times: 1}, 800); });' },
53
 
                                        {       desc: 'Bounce ease in out',     source: '$("#doBounce").click(function() { $("#bounce").effect("bounce", {easing: "easeInOutBounce", times: 1}, 800); });' },
54
 
                                ]
55
 
                        }
56
 
                        
57
 
                ]
58
 
 
59
 
        };
60
 
 
61
 
        $(function(){
62
 
 
63
 
                uiRenderDemo(model);
64
 
 
65
 
        });
66
 
 
67
 
</script>
 
 
b'\\ No newline at end of file'