开发者

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

开发者 https://www.devze.com 2023-03-01 06:12 出处:网络
I want fadein effect with backgroundcolor and bor开发者_开发知识库der. $(\'ul#listticker\').prepend($(\'<li>../li>\')

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

精彩评论

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