Grokbase
Topics Posts Groups | in
x
[ help ]

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

View PostFlat  Thread  Threaded | < Prev
Siah Sookhteh Re: [Dojo-interest] What's a mixin for Animation?
| +1 vote
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Thanks for the clarifications and your quick response.
Sia


On 8/1/07, peter e higgins <dante@inpdx.net> wrote:
>
> This was a documentation bug that was fixed in SVN yesterday actually.
>
> dojo.fx.slideTo({ node: 'divId', duration: 1000, top: 1000, left:
> 400 }).play();
>
> gives you the animation you are looking for.
>
> the idea of 'mixin' is such that dojo.fx.slideTo 'mixes' your object
> {node:etc, etc} into a dojo.animateProperty _Animation, which uses a similar
> object:
>
> dojo.animateProperty({ node: 'nodeId', duration: 1000,
>         properties: {
>                 top: { end: 1000, unit: "px" },
>                 left: { end: 400, unit:"px" }
> /* opacity: { }, backgroundColor: { }, etc, etc */
>         }
> }).play();
>
> dojo.animateProperty is very useful.
>
> On Wednesday 01 August 2007 19:23, Siah Sookhteh wrote:
> > 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-c
> >hanges 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
> _______________________________________________
> 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
>
_______________________________________________
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 | < Prev