首页 > 如何为background-image设置动画?

如何为background-image设置动画?

用代码说话

    section.tt-grid-wrapper{
    &:hover{
        background-image{
            -webkit-animation: pulse 2.0s infinite ease-in-out;
            animation: pulse 2.0s infinite ease-in-out;
        }
    }   
}

想让该选区在鼠标点击时,只让背景图执行动画,这样的less写法有错,求指点!!


你要的是如下效果么?
http://jsfiddle.net/chenxiaochun/kgLV5/


动画说明的w3school上的css3动画中不是有详细说明吗?(http://www.w3school.com.cn/css3/css3_animation.asp)
背景执行动画?在hove里面执行写好的动画就好了....
我是这样理解的 演示:http://sandbox.runjs.cn/show/eijaxo1t
代码:http://runjs.cn/code/eijaxo1t

【热门文章】
【热门文章】