CSS的鼠标悬停图片抖动效果

添加时间:17-06-02 所属分类:HTML网页,JS语言与代码
  转载自https://www.inlojv.com/2915.html

CSS样式表文件
[code]<style type="text/css">
.jv_img_shake img:hover{-webkit-animation: tada 1s .2s ease both;-moz-animation: tada 1s .2s ease both;}
@-webkit-keyframes tada{0%{-webkit-transform:scale(1);}
10%, 20%{-webkit-transform:scale(0.9) rotate(-3deg);}
30%, 50%, 70%, 90%{-webkit-transform:scale(1.1) rotate(3deg);}
40%, 60%, 80%{-webkit-transform:scale(1.1) rotate(-3deg);}
100%{-webkit-transform:scale(1) rotate(0);}}
@-moz-keyframes tada{0%{-moz-transform:scale(1);}
10%, 20%{-moz-transform:scale(0.9) rotate(-3deg);}
30%, 50%, 70%, 90%{-moz-transform:scale(1.1) rotate(3deg);}
40%, 60%, 80%{-moz-transform:scale(1.1) rotate(-3deg);}
100%{-moz-transform:scale(1) rotate(0);}}
.zzsc-list .dressing_hover .information_area{-webkit-animation: flipInY 300ms .1s ease both;-moz-animation: flipInY 300ms .1s ease both;}
@-webkit-keyframes flipInY{0%{-webkit-transform:perspective(400px) rotateY(90deg);
opacity:0;}
40%{-webkit-transform:perspective(400px) rotateY(-10deg);}
70%{-webkit-transform:perspective(400px) rotateY(10deg);}
100%{-webkit-transform:perspective(400px) rotateY(0deg);
opacity:1;}}
@-moz-keyframes flipInY{0%{-moz-transform:perspective(400px) rotateY(90deg);
opacity:0;}
40%{-moz-transform:perspective(400px) rotateY(-10deg);}
70%{-moz-transform:perspective(400px) rotateY(10deg);}
100%{-moz-transform:perspective(400px) rotateY(0deg);
opacity:1;}}
</style>[/code]

html代码
[code]<div class="jv_img_shake">
<p><strong>鼠标移动图片上看看吧</strong></p>
<p><img src="//www.inlojv.com/wp-content/uploads/20140618_img-shake.jpg" alt="抖动图片"></p></div>[/code]

前篇:中国时尚奶奶年过七旬骑哈雷走大漠 后篇:JS控制<DIV>鼠标悬停时 显示 当鼠标移...
发表我的评论


推荐文章   百位日本设计大师,为孩子拍下“大片”...   世界上最美的女孩,父亲为了保护她辞职...   关于中国90后研究报告   名单!山东公布首批55个森林乡镇、500个...   读万卷书行万里路 省实验中学刘宗一:这...
随机文章   DIV+CSS图片切片   Javascript实现刷新页面后显示不重复的...   很漂亮的加载进度条+自动调转到相应页面   显示加裁进度条并实现调转到另一页的特...   页面加载完后自动调转代码
广告

其他推荐

因为本站所有内容均转载自其它媒体,本意为公众提供免费服务,但并不代表本网赞同其观点,也不能对其真实性验证负责,如稿件版权单位或个人不想在本网发布,请与我联系,本人会立即将其撤除,谢谢.联系方式:atseashawk@163.com QQ:99289555