css3圓形光環閃爍效果
阿新 • • 發佈:2018-11-26
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> </head> <body><style> body { background: #ef7148; } img { cursor: pointer; -webkit-animation: scaleout 2s infinite ease-in-out; animation: scaleout 2s infinite ease-in-out; } @-webkit-keyframes scaleout { 0% { -webkit-transform: scale(1.0); } 60% { transform: scale(1.0); -webkit-transform: scale(1.1); } 100% { -webkit-transform: scale(1.0); opacity: 1; } } @keyframes scaleout { 0% { transform: scale(1.0); -webkit-transform: scale(1.0); } 60% { transform: scale(1.0); -webkit-transform: scale(1.1); } 100% { transform: scale(1.1); -webkit-transform: scale(1.0); opacity: 1; } } </style> </body> <img src="http://image.bitautoimg.com/weixin/images/footShop/[email protected]" alt=""> </html>
源:http://www.xwcms.net/js/css3sl/74342.html