widget.Effects updated … again
I added 7 more effects to my widget.Effects addon..
- YAHOO.widgets.Effects.BlindRight()
- YAHOO.widgets.Effects.BlindLeft()
- YAHOO.widgets.Effects.Fold()
- YAHOO.widgets.Effects.ShakeLR()
- YAHOO.widgets.Effects.ShakeTB()
- YAHOO.widgets.Effects.Pulse()
- YAHOO.widgets.Effects.Drop()
Keep asking & I will keep building ![]()








September 4th, 2006 at 1:47 pm
Haven’t quite decided how they could be used practically for projects but the examples you give are very much appreciated.
September 4th, 2006 at 2:11 pm
Mat –
These Effects can make development very simple. For example, if you had a div for warnings (id: warning) & all you wanted to do was notify the user that they need to read it, you could apply the YAHOO.widget.ShakeLR() from inside of your verify function like this:
function verify() {
//Your logic here
YAHOO.widget.ShakeLR(’warning’);
}
The main usage of these Effects are for those Web Dev’s out there that want simple one-line effects that work as they expect them to..
Hope that helps.
September 13th, 2006 at 2:54 pm
I could really use Effect.SlideUp and Effect.SlideDown
September 13th, 2006 at 7:59 pm
Chris –
You can get the same effect by using the Blind Up & Blind Down, you just have to mod the element with some css
Here’s an example:
http://blog.davglass.com/files/yui/effects/slide.php
September 19th, 2006 at 8:26 am
Something you might want to take into consideration is adding the custom events - which is something you get with the animation utility, but you’ve removed that functionality with these ones.
I wrote this quite a bit back in yui’s early stages: http://www.dustindiaz.com/basement/effects.html
It was only a proof of concept at the time, but allowing the developer to pass in a method for onComplete would be good. Or you could perhaps just make another custom event for it. Eg: myShake.onComplete.subscribe( function() { } );
Overall though, this is really great stuff you’ve put together man. Keep it up
September 19th, 2006 at 12:49 pm
Thanks, I really wanted to add some custom event supprt to them, but I ran into a glitch that I need to work out..
Some of the effects already have an onComplete method assigned to make the effect work as expected..
My issue, is that there is no “nice” way to say that x onComplete function comes before y..
I was getting mixed results, as with the Effect.Batch, it will only work with effects that have no onComplete functions..
I think I know how to make it do what I want, just don’t currently have the time to impliment it
Anyway, thanks for the compliment & maybe I’ll meet you someday on campus…
October 23rd, 2006 at 2:01 pm
Just an update. In my latest release of the Effects 0.5, I have implemented a custom event called onEffectComplete. Check out the docs here.