jQuery Animate plays backwards? -



jQuery Animate plays backwards? -

i trying utilize fadein+slidedown script found here on stackoverflow.

$('#topmenu').animate({ "height": "toggle", "opacity": "toggle" }, "slow"); $('.post').delay(1000).animate({ "height": "toggle", "opacity": "toggle" }, "slow");

for reason 2 animations playing backwards here... can help me figure reason out?

#topmenu , .post need hidden able fade in , slide downwards when using toggle option. example,

#topmenu, .post { display: none; }

in case, since elements visible, toggle alternative fade , slide them out.

you can utilize .hide() before animations. but, still believe using css optimal solution here.

note: can create utilize of "show" , "hide" instead of "toggle" if applying one-time effect.

jquery jquery-animate

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -