jQuery slideToggle from left

JavaScript related questions should go here.
Post Reply
User avatar
emma
Posts: 12
Joined: Sat May 07, 2011 5:14 pm

jQuery slideToggle from left

Post by emma »

Hy guys

Guys i wanna make a slideToggle who hide/show from left

Somebody can help me? Please
User avatar
ta2shop
Posts: 179
Joined: Sat May 07, 2011 9:07 am
Location: madrid, Spain
Contact:

Re: jquery

Post by ta2shop »

with jquery, thaf luk , but you can do that with normal css!
does it have to by jquery?
Image
User avatar
EcazS
Posts: 789
Joined: Fri May 06, 2011 5:29 pm

Re: jquery

Post by EcazS »

ta2shop wrote:with jquery, thaf luk , but you can do that with normal css!
does it have to by jquery?


How do you animate CSS?

http://api.jquery.com/slideToggle/
bowersbros
Posts: 534
Joined: Thu May 05, 2011 8:19 pm

Re: jquery

Post by bowersbros »

CSS3 supports animations i believe.. But jquery (pure JS is better) would be much preferred than CSS
I don't like to brag, but I wasn't circumcised. I was circumnavigated. ;)

Want to learn something new? Or maybe reinforce what you already know? Or just help out? Please subscribe to my videos: http://goo.gl/58pN9
User avatar
EcazS
Posts: 789
Joined: Fri May 06, 2011 5:29 pm

Re: jquery

Post by EcazS »

bowersbros wrote:CSS3 supports animations i believe.. But jquery (pure JS is better) would be much preferred than CSS


It does, I would advise against it though.
And why is pure JS so much better?

You can also use animate instead of slideToggle
http://api.jquery.com/animate/
bowersbros
Posts: 534
Joined: Thu May 05, 2011 8:19 pm

Re: jquery

Post by bowersbros »

EcazS wrote:
bowersbros wrote:CSS3 supports animations i believe.. But jquery (pure JS is better) would be much preferred than CSS


It does, I would advise against it though.
And why is pure JS so much better?

You can also use animate instead of slideToggle
http://api.jquery.com/animate/


jquery you load the entire library (~ 30kb if production or ~ 200kb if development) whereas pure JS you load ~ 1kb or so.
I don't like to brag, but I wasn't circumcised. I was circumnavigated. ;)

Want to learn something new? Or maybe reinforce what you already know? Or just help out? Please subscribe to my videos: http://goo.gl/58pN9
User avatar
EcazS
Posts: 789
Joined: Fri May 06, 2011 5:29 pm

Re: jquery

Post by EcazS »

bowersbros wrote:jquery you load the entire library (~ 30kb if production or ~ 200kb if development) whereas pure JS you load ~ 1kb or so.


How dangerous.
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: jquery

Post by jacek »

EcazS wrote:How dangerous.

The browser also has to process it.

But don't ruin this topic by arguing about jQuery.
Image
User avatar
emma
Posts: 12
Joined: Sat May 07, 2011 5:14 pm

Re: jQuery from left

Post by emma »

emma wrote:Hy guys

Guys i wanna make a slideToggle who hide/show from left

Somebody can help me? Please


Uh what's going on? :shock:
User avatar
ta2shop
Posts: 179
Joined: Sat May 07, 2011 9:07 am
Location: madrid, Spain
Contact:

Re: jQuery slideToggle from left

Post by ta2shop »

have you read the instructions about the jquery .animate()?
Image
User avatar
emma
Posts: 12
Joined: Sat May 07, 2011 5:14 pm

Re: jQuery slideToggle from left

Post by emma »

I dont need animation i need slide toggle from left to right
User avatar
EcazS
Posts: 789
Joined: Fri May 06, 2011 5:29 pm

Re: jQuery slideToggle from left

Post by EcazS »

emma wrote:I dont need animation i need slide toggle from left to right


Yes. Animate. You can slide toggle from left to right with animate.
http://api.jquery.com/animate/
Post Reply