Search the web
Sign In
New User? Sign Up
ydn-javascript · Yahoo! User Interface Library Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Easy way to hide an element with animation   Message List  
Reply | Forward Message #34085 of 52117 |
Hi there,
 
I'm just wondering if it's me who are dumb or if there's no easy way to hide an element with an animation ?
Maybe I just don't know where to search this is my first time with YUI.
 
Thanks
 
Pierre


Be smarter than spam. See how smart SpamGuard is at giving junk email the boot with the All-new Yahoo! Mail

Tue Jul 8, 2008 10:50 pm

pierre.rouwens
Offline Offline
Send Email Send Email

Forward
Message #34085 of 52117 |
Expand Messages Author Sort by Date

Hi there, I'm just wondering if it's me who are dumb or if there's no easy way to hide an element with an animation ? Maybe I just don't know where to search...
Pierre Rouwens
pierre.rouwens
Offline Send Email
Jul 8, 2008
10:50 pm

... to hide an element with an animation ? ... You can subscribe to the onComplete event and then hide the element. This for excample slowly fades my "Loading"...
dietrich.frank
Offline Send Email
Jul 9, 2008
10:29 am

Hi Franck, Thanks a lot for your hint ;) Actually my mistake, I don't wanna hide but toggle the visibility. For now I'm here : var PR = {} PR.toggler =...
Pierre Rouwens
pierre.rouwens
Offline Send Email
Jul 9, 2008
2:37 pm

Pierre, ... That was just the way I use it in this case. You can animate hight, width, position, opacity, what ever You like. ... If I see it right, You're not...
dietrich.frank
Offline Send Email
Jul 9, 2008
3:35 pm

Franck, Yes I've discovered I forgot the height: ;) But do you know how i can set the height to get the real element height, not a fixed value ? Thanks a lot ...
Pierre Rouwens
pierre.rouwens
Offline Send Email
Jul 9, 2008
4:03 pm

... height, not a fixed value ? When I'm doing something like this, I like to use the offsetHeight property of the element I'm animating. However, there's a...
Adam
ajm_dj
Offline Send Email
Jul 9, 2008
5:07 pm

... the element's offsetHeight will give You the current height of the object. You should probably query this and keep it as an attribute or so, as it also...
dietrich.frank
Offline Send Email
Jul 9, 2008
5:29 pm

Hi Adam, Thanks a lot ... it works like a charm ;) Now the next step for me ... get my boxes dragable and keep memory of the order ;) Gonna check the API. ... ...
Pierre Rouwens
pierre.rouwens
Offline Send Email
Jul 9, 2008
5:40 pm

Franck, Thanks a lot for your help .. all works fine now ;) As I said ... next step .. gonna try to make my divs dragable ;) Thanks Pierre ... From:...
Pierre Rouwens
pierre.rouwens
Offline Send Email
Jul 9, 2008
5:41 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help