Page Menu
Home
Code
Search
Configure Global Search
Log In
Files
F1130482
test_slideBy.html
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
test_slideBy.html
View Options
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<
html
>
<
head
>
<
title
>
dojox.fx - animation sets to use!
</
title
>
<
script
type
=
"text/javascript"
src
=
"../../../dojo/dojo.js"
djConfig
=
"isDebug:true, parseOnLoad: true"
></
script
>
<
script
type
=
"text/javascript"
src
=
"../_base.js"
></
script
>
<
style
type
=
"text/css"
>
@
import
"../../../dojo/resources/dojo.css"
;
@
import
"../../../dijit/themes/dijit.css"
;
@
import
"../../../dijit/themes/tundra/tundra.css"
;
@
import
"../../../dijit/tests/css/dijitTests.css"
;
#
sizeToTest
{
position
:
absolute
;
top
:
0
;
left
:
300
px
;
border
:
2
px
solid
#ededed
;
width
:
50
px
;
height
:
50
px
;
background
:
#fff
;
text-align
:
center
;
}
</
style
>
<
script
type
=
"text/javascript"
>
function
chainTest
(){
// FIXME: not recalculating mixin in init? or not re-mixing, rather.
// happens to a lot of propertyAnimations, actually when chaining, with a
// fixed 'start' property in the mixin. see _base/fx.js:slideBy()
dojo
.
fx
.
chain
([
dojox
.
fx
.
slideBy
({
node
:
'sizeToTest'
,
top
:
50
,
left
:
50
,
duration
:
400
}),
dojox
.
fx
.
slideBy
({
node
:
'sizeToTest'
,
top
:
25
,
left
:-
25
,
duration
:
400
})
]).
play
();
}
</
script
>
</
head
>
<
body
class
=
"tundra"
>
<
h1
class
=
"testTitle"
>
dojox.fx.slideBy test
</
h1
>
<
a
href
=
"#"
onclick
=
"javascript:dojox.fx.slideBy({node:'sizeToTest', top:50, left:50, duration:200 }).play()"
>
top: 50, left:50
</
a
>
<
a
href
=
"#"
onclick
=
"javascript:dojox.fx.slideBy({node:'sizeToTest', top:-50, left:50, duration:400 }).play()"
>
top:-50, left:50
</
a
>
<
a
href
=
"#"
onclick
=
"javascript:dojox.fx.slideBy({node:'sizeToTest', top:-50, left:-50, duration:400 }).play()"
>
top:-50, left:-50
</
a
>
<
a
href
=
"#"
onclick
=
"javascript:dojox.fx.slideBy({node:'sizeToTest', top:50, left:-50, duration:400 }).play()"
>
top:50, left:-50
</
a
>
<
a
href
=
"#"
onclick
=
"javascript:chainTest()"
>
chainTest
</
a
>
<
div
id
=
"sizeToTest"
>
lorem. ipsum.
</
div
>
HTML AFTER
<
br
>
</
body
>
</
html
>
File Metadata
Details
Attached
Mime Type
text/html
Expires
Sat, Jun 21, 16:05 (1 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27024
Default Alt Text
test_slideBy.html (1 KB)
Attached To
rZEDHG ZedLegacy
Event Timeline
Log In to Comment