June 1st, 2005

EffectsPack - Prototype Based Effects

11 comments on 245 words

I’ve been toying around with “Prototype”:http://prototype.conio.net/ and “Effects V2”:http://mir.aculo.us/articles/2005/05/30/javascript-visual-effects-v2-beta-version the past couple of days. I wanted to put the great effects offered by both packages to real world use and so far I’ve got some “initial widgets”:http://www.encytemedia.com/effectspack posted.

Currently it’s two simple implementations (“ActiveMenu”:http://www.encytemedia.com/effectspack and “ActiveTab”:http://www.encytemedia.com/effectspack), but I plan on expanding and refining the package further as i’m sure there will be bugs and such.

ActiveMenu is an unordered list that makes use of Effects V2’s Blind function. ActiveTab is a tab-panel system loosely based on “Tabtastic”:http://phrogz.net/JS/Tabtastic/index.html. It could prove to be very useful for hiding advanced options and extended information without requiring a page reload.

Sorry, no docs… yet.

Discussion

  1. Frank Manno Frank Manno said on June 2nd

    Justin,

    Very nice!! They look awesome, especially the ActiveTab example you have. I love the fade effect.

    Wow, I’ve gotta give Prototype/Effects a go… Did you find them easy to work with?

  2. Justin Palmer Justin Palmer said on June 2nd

    Thanks Frank!

    Prototype and Effects V2 were both written in a very clean style, so there both pretty easy to get the hang of.

    I’d eventually like to get the widgets into a more manageable format, but hopefully that will come soon.

  3. tobi tobi said on June 2nd

    Thats really cool stuff justin!

  4. bodhi bodhi said on June 2nd

    they are really nice! but i broke the tabs: on safariif you click fast, you can end up with two tabs showing… it’s only a minor issue on an otherwise neat system though!

  5. Ramin Ramin said on June 3rd

    I also experienced the double tab issue. Only happens when you click fast between the tabs. Typically tab2 stay around for some reason.

    Maybe have a the first tab fade out before the next tab fades in? This may look a bit smoother as well.

    Nice work though :-)

  6. Mike Mike said on June 3rd

    I have that too. FF 1.0.4 – If you click the tabs rapidly (while the first one is still fading in) you can have all three tabs shown at the same time.

    Very, very cool effects, though! Kudos!

  7. Justin Justin said on June 3rd

    Thanks for the feedback guys :-) , I’ll look into the issue about multiple tab contents showing.

  8. Nacho Nacho said on June 11th

    Hi.

    As all the previous posters, I want to say that you’ve done a great work.

    I would also like to make a suggestion for one of the TODO’s items. Maybe you have already considered it, but you could use a different class for the showing tab. This could avoid the use of the inline javascript initialization code, as you could make all the tabs to ‘display:none’ in the css, except for the showing one. Then, when you click on a tab, you could change its class to ‘showing_tab’ and reset all the others. They would hide automatically, and the new one would be displayed. All the effects could be managed through this handler, and maybe, this could even lead to a fix for the multiple tabs showing issue…

    Anyway, this is only a suggestion, just keep up with your great work… :D

  9. michael michael said on June 30th

    nice contrib. thanks.

    but on my IE, it is broken… at least this page is:
    http://www.encytemedia.com/effectspack/#tab3

    the effects are clumsy and the tab divs are all viewable…

    works perfect in firefox.

    IE sucks.

  10. mike mike said on July 25th

    Hey, man. Those tabs look awesome. I was going to use that in my CMS project (called UpdateAble, and it’s on sf.net) but it didn’t work for me in IE.

    Keep up the good work. I’m interested in what you’ll come up with next.

  11. Ben Ben said on August 1st

    Fantastic tabs! I’m just in the process of adapting them for my latest project.

Sorry, comments are closed for this article.