Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Toggle effects

9 views
Skip to first unread message

Colin M

unread,
Jun 16, 2010, 6:57:20 PM6/16/10
to scripty2
I didn't see the equivalent functionality for Effect.toggle in
Scripty2 Except for S2.FX.Slide{Up,Down}, are these type of
convenience methods going to be added to S2 core eventually?

Thanks,
Colin

Andrew Dupont

unread,
Jun 16, 2010, 7:00:49 PM6/16/10
to scri...@googlegroups.com
Yes, though I'm not quite sure what form they will take. Some of them, like appear/fade, can be expressed very easily with S2.FX.Morph and are best represented as short convenience methods; some require more elaborate setup, like SlideUp/SlideDown, and are best represented as proper subclasses of S2.FX.Element. Thomas, any thoughts?

Cheers,
Andrew

> --
> You received this message because you are subscribed to the Google Groups "scripty2" group.
> To post to this group, send email to scri...@googlegroups.com.
> To unsubscribe from this group, send email to scripty2+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/scripty2?hl=en.
>

Radoslav Stankov

unread,
Jun 17, 2010, 3:45:45 AM6/17/10
to scripty2
If need a solution you can check my CD3Widgets mini lib
http://github.com/RStankov/controldepo-3-widgets and use the
toggleWithEffect method from here:

http://github.com/RStankov/controldepo-3-widgets/blob/master/src/cd3/extensions/effects.js

I still have somo work todo (mostly to update it for the latest
version of scripty2) on it and the other effects but is working good
enough :)

this is probably how the refined version will look like:
http://gist.github.com/441811
Reply all
Reply to author
Forward
0 new messages