CSS3背景图片缩放动画
		
		- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 - <html xmlns="http://www.w3.org/1999/xhtml">
 - <head>
 - <title>CSS3背景图片缩放动画</title>
 - <meta http-equiv="content-type" content="text/html;charset=gb2312">
 - <style type="text/css">
 - body{padding:0;margin:0;}
 - /*放大镜效果*/
 - @-moz-keyframes heart_beat{0%{-moz-transform:scale(1)}
 - 25%{-moz-transform:scale(1.70)}
 - 50%{-moz-transform:scale(0.9)}
 - 75%{-moz-transform:scale(1.55)}
 - 100%{-moz-transform:scale(1)}}
 - @-webkit-keyframes heart_beat{
 - 0%{-webkit-transform:scale(1.03);-webkit-transparent:0.5
 - -moz-opacity:0.5;
 - -khtml-opacity: 0.5;
 - opacity: 0.5;}
 - 100%{-webkit-transform:scale(1);filter:alpha(opacity=50);
 - }
 - }
 - div{ height:1000px; margin:0 auto;border:solid 1px #ccc; background:url(1.jpg);text-align:center;-webkit-animation:heart_beat 1s ease-in-out;}
 - </style>
 - </head>
 - <body>
 - <div>
 - </div>
 - </body>
 - </html>
 
============ 欢迎各位老板打赏~ ===========
			
		与本文相关的文章
- · 如何用一行 CSS 分别实现 10 种现代布局?
 - · 详解css3 pointer-events(阻止hover、active、onclick等触发事件)
 - · Flex 布局教程:语法篇
 - · 分享一个CSS3边框旋转特效
 - · 小程序动画实现旋转
 - · Nest.js 、 Next.js、 Nuxt.js的区别
 - · 小程序可以绑定其它小程序吗?
 - · vue3+vite+多环境发面到二级目录配置
 - · 微信小程序防止事件穿透防止事件冒泡
 - · 普通链接二维码跳转小程序
 - · 解决flex-direction: column 之后元素宽度自动变为100%
 - · vue/react/node/vite/npm/yarn build自动更新版本号
 
