css3 - 如何为background-image设置动画?
天蓬老师
天蓬老师 2017-04-17 11:04:46
0
2
644

用代码说话

    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写法有错,求指点!!

天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(2)
小葫芦

Aren’t there detailed instructions in the css3 animation on w3school for animation instructions? (http://www.w3school.com.cn/css3/css3_animation.asp)
Background execution animation? Just execute the written animation in hove....
This is how I understand it. Demonstration: http://sandbox.runjs.cn/show/eijaxo1t
Code: http://runjs.cn/code/eijaxo1t

PHPzhong

Do you want the following effect?
http://jsfiddle.net/chenxiaochun/kgLV5/

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template