html - How to horizontally slide divs, without position:absolute -


i have 2 panel view 1 panel visible @ given time. whenever panel disappears should slide right, , @ same time appearing panel should slide in left. whenever animate 1 div displays above other when should both on same line transitioning. container cannot have overflow-y property since divs might vary in length , same reason divs cannot position:absolute (since not know height). here fiddle @ regular speed

the css container

.selectedcontent { min-height:140px; padding:4px 10px; width:300px; background:white; text-align:center; overflow: hidden; position: relative; } 

here fiddle slowed down

i slowed down fiddle can see divs display on top of each other , not side side. tried float them display inline did not work.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -