root / trunk / tests / lfx / test_nostart.html

Revision 5110, 1.1 kB (checked in by alex, 2 years ago)

test updates

Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
2        "http://www.w3.org/TR/html4/strict.dtd">
3
4<title>lfx</title>
5
6<style>
7        .box {
8                width: 300px;
9                height: 300px;
10                border: 2px solid black;
11                background-color: #455bae;
12                position: absolute;
13        }
14</style>
15<script type="text/javascript">
16        var djConfig = { isDebug: true };
17</script>
18<script type="text/javascript" src="../../dojo.js"></script>
19<script type="text/javascript">
20        dojo.require("dojo.lfx.*");
21                dojo.require("dojo.event.*");
22</script>
23<script type="text/javascript">
24        dojo.addOnLoad(function(){
25                // squeeze two nodes and fade
26                var anim = dojo.lfx.propertyAnimation(
27                        ["foo"],
28                        [
29                                { property: "height", end:1},
30                                { property: "opacity", end: 0} ,
31                                { property: "top", end: 0},
32                                { property: "left", end: 0},
33                                { property: "width", end: 0}
34                        ],
35                        1000,
36                        dojo.lfx.easeInOut
37                ).play(1000);
38                // dojo.event.connect(anim, "onEnd", function(){ alert("WTF?"); });
39        });
40</script>
41
42<div id="foo" style="left: 100px; top: 100px;" class="box"></div>
43<div id="bar" style="left: 500px; top: 100px;" class="box"></div>
Note: See TracBrowser for help on using the browser.