开发者

How to fadein prepend li with background color and border color?

I want fadein effect with backgroundcolor and bor开发者_开发知识库der.

$('ul#listticker').prepend($('<li>../li>')
                  .fadeIn(1000)
                  .animate({
                        backgroundColor:'#fff8cc',
                        borderTopColor:"#ff0000",
                        borderBottomColor:'#ff0000',
                        borderLeftColor:'#ff0000',
                        borderRightColor:'#ff0000'
                        },"slow")
                    );

I tried above code but it only work background color.And also i need fadeout with backgroundcolor and border.


here you are, just looks like you had to define a border to start in your css

http://jsfiddle.net/samccone/xRYJX/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜