Grokbase
Topics Posts Groups | in
x
[ help ]

[Dojo-interest] What's a mixin for Animation?

View PostFlat  Thread  Threaded | Next >
Siah Sookhteh [Dojo-interest] What's a mixin for Animation?
| +1 vote
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Hi,

I am trying to get 0.9's dojo.fx.slideTo to work and in the dojo's
code there is this comment:

// addition mixin args needed:
// coords: { top: Decimal?, left: Decimal? }

But, I'm not sure where this has to go. I read
http://dojotoolkit.org/book/dojo-porting-guide-0-4-x-0-9/effects-dojo-lfx-changes
and its not too clear what a mixin is. So, I've unsuccessfully tried
all the following:

dojo.fx.slideTo({node:'DIV_ID', duration: 1000, 'coords':{ top: 1000,
left: 400}}).play();

and here it always animates my DIV to 0 and 0

I also tried placing 'coords' key within another 'properties'
dictionary, and interestingly enough, it stops animation all together.

Thanks,
Sia
_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://dojotoolkit.org/docs/book
Forums: http://dojotoolkit.org/forum
[email protected: Dojo-int...@dojotoolkit.org]
http://dojotoolkit.org/mailman/listinfo/dojo-interest

Thread : Re: [Dojo-interest] What's a mixin for Animation?
1)
Siah Sookhteh Hi, I am trying to get 0.9's dojo.fx.slideTo to work and in the dojo's code there is this comment:...
2)
peter e higgins This was a documentation bug that was fixed in SVN yesterday actually. dojo.fx.slideTo({ node:...
3)
Frank W. Zammetti I can never read about Dojo and "mixins" without wanting to run out to Coldstone Creamery for some...
4)
Siah Sookhteh Thanks for the clarifications and your quick response. Sia ...
spacer
View PostFlat  Thread  Threaded | Next >