Davs Rants and Random Thoughts

November 7, 2006

Announcing widget.Effects 0.7

Filed under: yui, ajax, javascript, code, Yahoo! — Dav Glass @ 6:42 pm

I have updated the Effects widget again 8-)

Here’s what’s included:

  • New Effects
    • Shrink
    • Grow
    • UnFold
    • TV
  • New option called ghost added 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).

Add to:
| Digg it | Slashdot | Y! MyWeb

8 Responses to “Announcing widget.Effects 0.7”

  1. MyAvatars 0.2 Brian Says:

    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.

  2. MyAvatars 0.2 Dav Glass Says:

    Brian –

    I should edit that post and remove that. I since removed the code for that fix as it broke more than it helped..

  3. MyAvatars 0.2 RollyF Says:

    Some effects do not work in IE7

  4. MyAvatars 0.2 Jeff Hoffman Says:

    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?

  5. MyAvatars 0.2 Dav Glass Says:

    Jeff –

    Can you send me a link to reproduce this?

    Dav

  6. MyAvatars 0.2 Jeff Hoffman Says:

    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.

  7. MyAvatars 0.2 Dav Glass Says:

    Jeff –

    Sorry about that, I didn’t “read” the post very well before responding 8-)

    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

  8. MyAvatars 0.2 Jeff Hoffman Says:

    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.

© 2008 Dav Glass - All content is mine, except comments. Comments are the property of the poster. I speak for no person or company.
Can you tell me what this says? 01000100 01100001 01110110 01101001 01100100 00100000 01000111 01101100 01100001 01110011 01110011