给EM博客添加图片抖动效果 [复制链接]

moqu8 2018-4-13

86 0

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)
}

大前端主题首页站点配置自定义css   加入上面代码即可!
最新回复 (0)
返回
支持中心
邮箱:winkill2012@qqcom

历史资源已不再提供任何技术支持和售后服务,客服仅处理无法下载或支付相关问题,资源使用或异常问题请自行解决!
支持中心