Vikas
Vikas

Reputation: 354

jquery slide out div from right

I am trying to achieve a "slide out from right" effect on a div using jquery. I am able to achieve it partially, but not how I need it. I have setup a fiddle.

The div nicely slides out, but the text inside it wraps when toggling. Is there a way to prevent the text from wrapping? I went through other SO posts, but couldn't find a solution. I would request you to put up an example if possible.

Any help will be greatly appreciated.

Thanks in advance!

Upvotes: 4

Views: 7687

Answers (1)

Sean Carruthers
Sean Carruthers

Reputation: 414

Fixed it using css. You can look at the fix here:

http://jsfiddle.net/yJYRZ/4/

You could obviously make this more specific by saying #home p, for example. That's your call.

Upvotes: 4

Related Questions