CSS3 Transition from right side of widow using :target

ArnoldoDil76

New Member
I'm am facing two issue:Here is the jsFiddle to reference: http://jsfiddle.net/2D7Ss/1/[*]In the current jsFiddle, when the greeting box slides to the left, it appears entirely at once, instead of incrementally, before sliding to the left. The slide to the right works fine.[*]If I set the greeting div's width to 100%, it doesn't slide to the left. This issue seems related to the one above because it appears entirely in the panel before sliding. But in this case the width is 100% so no sliding occurs.Ultimately, I'm am trying to build a page when each other page or content panel slides from the right. Here is the HTML:\[code\]<a href="http://stackoverflow.com/questions/14544852/#hello">Hello</a> | <a href="http://stackoverflow.com/questions/14544852/#goodbye">Goodbye</a><div id="content"> <div id="hello">Hello</div></div><div id="content"> <div id="goodbye">Goodbye</div></div>\[/code\]Here is the CSS:\[code\]body { margin-left: 5px; }#content { background: #ccc; width: 100%; height: 102px; position: relative; overflow: hidden;}#content div { position: absolute; background: lightblue; width: 100px; height: 100px; border: 1px solid gray; left: 100%; -moz-transition: left 1s ease; -webkit-transition: left 1s ease;}#content > div:target { left: 0;}\[/code\]
 
Back
Top