javascript - jquery slide effect, hide one div and show another -


I have this setup showing my problem, I'm sure it's a simple fix.

I am trying to slide blue blue on the left side while sliding from right to red in the same time. Sliding animation is working on how I want to do them, but when the red div is sliding, it shows up under the blue division. How can this be done on the right side of the blue device instead of being displayed below during the animation?

code:

  $ ("# slide2") effect ("slide", hide option, 1000); $ ("#EDDiv") Effects ("Slide", ShowOption, 1000);} ("Click", function () {$ ("#blueDiv").);    

You can use the situation: to exclude them from full flow and Place them next to each other:

  div> Div {status: absolute; }   

If you want to make it more specific for this div, you can use the specific selector:

  #contentWrapper div {position : Absolute; }   



Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -