animating elements with jQuery
If you are using jQuery for your web effects and you want to show an element using a jQuery animation, you need to make sure that the element is not already shown. But it has to be not shown in the "right way" for the effects to work. That "right way" is by using the display property and setting it to none in the CSS. Like this:
If you set up your element in this manner, you can then use jQuery code like this to have it displayed:
And the animation will then work correctly.
#elementId {
display: none;
}
If you set up your element in this manner, you can then use jQuery code like this to have it displayed:
('#elementId').show('normal');
And the animation will then work correctly.
| Rating: | no ratings, 0 total Votes |
| Categories: | javascript jQuery web programming |
| Added: | on Aug 04, 2008 at 1:46 pm |
| Added By: | an anonymous user |

