Page 1 of 1
jQuery slideToggle from left
Posted: Thu May 12, 2011 6:15 pm
by emma
Hy guys
Guys i wanna make a slideToggle who hide/show from left
Somebody can help me? Please
Re: jquery
Posted: Thu May 12, 2011 6:52 pm
by ta2shop
with jquery, thaf luk , but you can do that with normal css!
does it have to by jquery?
Re: jquery
Posted: Thu May 12, 2011 7:11 pm
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/
Re: jquery
Posted: Thu May 12, 2011 7:12 pm
by bowersbros
CSS3 supports animations i believe.. But jquery (pure JS is better) would be much preferred than CSS
Re: jquery
Posted: Thu May 12, 2011 7:14 pm
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/
Re: jquery
Posted: Thu May 12, 2011 7:20 pm
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.
Re: jquery
Posted: Thu May 12, 2011 7:24 pm
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.
Re: jquery
Posted: Thu May 12, 2011 7:25 pm
by jacek
EcazS wrote:How dangerous.
The browser also has to process it.
But don't ruin this topic by arguing about jQuery.
Re: jQuery from left
Posted: Thu May 12, 2011 7:27 pm
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?
Re: jQuery slideToggle from left
Posted: Thu May 12, 2011 7:37 pm
by ta2shop
have you read the instructions about the jquery .animate()?
Re: jQuery slideToggle from left
Posted: Thu May 12, 2011 7:43 pm
by emma
I dont need animation i need slide toggle from left to right
Re: jQuery slideToggle from left
Posted: Thu May 12, 2011 8:07 pm
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/