用代碼說話
section.tt-grid-wrapper{
&:hover{
background-image{
-webkit-animation: pulse 2.0s infinite ease-in-out;
animation: pulse 2.0s infinite ease-in-out;
}
}
}
想讓該選區(qū)在鼠標(biāo)點(diǎn)擊時(shí),只讓背景圖執(zhí)行動(dòng)畫,這樣的less寫法有錯(cuò),求指點(diǎn)?。?/p>
歡迎選擇我的課程,讓我們一起見證您的進(jìn)步~~
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
Do you want the following effect?
http://jsfiddle.net/chenxiaochun/kgLV5/