> $(".items").animate({"margin-left":"+="+amount+"px"},"slow");
> I really hope you can help me, I had never encountered this problem before.
try and take away those '+=', you wouldn't write a css rule like this
margin-left: +=300px;
:)
Actually, the += and -= are perfectly legit for the animate method. They
allow you to animate a property relative to its current value.
http://docs.jquery.com/Effects/animate
I believe the "margin-left" is the throwing it off. Somewhere in the docs it
mentions hyphenated properties should be writt
On Feb 15, 12:19 am, "Brian Cherne" <[EMAIL PROTECTED]> wrote:
> Actually, the += and -= are perfectly legit for the animate method. They
> allow you to animate a property relative to its current
> value.http://docs.jquery.com/Effects/animate
ooops, I'm sorry I didn't know that :)
There is a plugin that does what u want.
http://www.ndoherty.com/demos/coda-slider/1.1.1/
Thanks Brian!
It works great now, the problem was the hyphenated properties, I had no idea
that I should have written those in camel case.
Thank you very much :handshake:
Leon.
Brian Cherne wrote:
>
> Actually, the += and -= are perfectly legit for the animate method. They
> allow you to anima
thanks :)
2008/2/15, Leonardo K <[EMAIL PROTECTED]>:
>
> There is a plugin that does what u want.
>
> http://www.ndoherty.com/demos/coda-slider/1.1.1/
>
>
I wish I new that yesterday.. :confused:
Thanks.
Leonardo K wrote:
>
> There is a plugin that does what u want.
>
> http://www.ndoherty.com/demos/coda-slider/1.1.1/
>
>
--
View this message in context:
http://www.nabble.com/Code-works-in-Safari-ONLY-tp15489385s27240p15502122.html
Sent fr
7 matches
Mail list logo