給Emlog博客系統添加圖片抖動的JS代碼

廣告也精彩

1.首先我們找到自己的模板,EM路徑為

EMLOG模板位置在:/content/templates/你的模板名/

2.找到我們模板的主要css文件,放到css的最后面即可,一般為style.css

但也有不一樣的,但是只要放到主要的css里面就行了

img:hover {
-webkit-animation:sucaijiayuan 1s .1s ease both;
-moz-animation:tada 1s .1s ease both;
}
@-webkit-keyframes sucaijiayuan {
0% {
-webkit-transform:scale(1)
}
10%, 20% {
-webkit-transform:scale(0.8) rotate(-2deg)
}
30%, 50%, 70%, 90% {
-webkit-transform:scale(1.1) rotate(2deg)
}
40%, 60%, 80% {
-webkit-transform:scale(1.1) rotate(-2deg)
}
100% {
-webkit-transform:scale(1) rotate(0)
}
? 版權聲明

相關文章

暫無評論

none
暫無評論...