Announcing widget.Effects 0.7
I have updated the Effects widget again
Here’s what’s included:
- New Effects
- Shrink
- Grow
- UnFold
- TV
- New option called
ghostadded to many effects - New Container Effects
- UnFoldFold
- BlindUpDownBindedGhost
- BlindUpDownGhost
- BlindLeftRightBindedGhost
- BlindLeftRightGhost
- BlindRightFoldGhost
- BlindLeftFoldGhost
- BlindDownDropGhost
- BlindUpDropGhost
- UnFoldFoldGhost
This update also includes a fix for the nasty “multiple crazy click” problem, where the effect would run on top of itself if the effect was fired off more than once (e.g. from a user clicking it several times).








December 4th, 2006 at 11:02 pm
Nice effects. FYI, I think you still have a “carzy click” problem, although since it’s double-click-related, I think it’s a significant one (all of my relatives double-click *everything*
On your examples like BlindUp and BlindDown on the ghosting page, if you double-click, when the elements reappear they start off sized incorrectly based on where the second click was.
December 4th, 2006 at 11:29 pm
Brian –
I should edit that post and remove that. I since removed the code for that fix as it broke more than it helped..
January 12th, 2007 at 6:44 am
Some effects do not work in IE7
February 21st, 2007 at 11:30 am
I’m not sure, but I think I’ve run into a bug with the effects library. I have a div hidden with style=”display: none;” which I’m trying to display with a BlindDown. I get no errors, but the div doesn’t show. Using Firebug and some breakpoints, I observed that the height is being captured at 0 on effects.js line 290. If I unhide the div, this._height = 40, but when I start with the div hidden this._height = 0.
I’ve tested this in both Safari and Firefox and get the same result. Ideas?
February 21st, 2007 at 2:13 pm
Jeff –
Can you send me a link to reproduce this?
Dav
February 21st, 2007 at 2:34 pm
I’ll have to wait until I can separate it out of our app, since it’s currently not public. Give me a few days. If I’m right, it should be as easy as adding style=”display:none;” to your BlindDown example. I don’t think we’re doing anything crazy, but can’t be sure until I isolate the code.
February 21st, 2007 at 3:05 pm
Jeff –
Sorry about that, I didn’t “read” the post very well before responding
You will want to set the container to “
visibility: hidden;” instead of “display: none“.When an element is set to
display: none, it is actually removed from the document, so there is no reliable way to get that elements size.I am working on the next release of the Effects & Tools to go with the new YUI release & I plan on addressing that issue and a few others..
My plan is to “clone” the element and then display it way off page, then grab the data that I need & destroy the “clone”..
We’ll see how that works out..
Dav
February 21st, 2007 at 3:39 pm
Ahh, ok. You might look at how scriptaculous handles it, too, as that’s what we were using before. Maybe they did the off-screen clone you mention, but somehow it worked fine for us.
Thanks for the help, and the cool library.