为了账号安全,请及时绑定邮箱和手机立即绑定

心形动态图,拷贝来的

标签:
Html/CSS

<!DOCTYPE html>

<html>

<head>

<title>Page Title</title>

<style>

@keyframes movingheart{

0% {width:100px;height:100px;left:0px;top:0px;opacity:0.2} 

25% {width:200px;height:200px;left:100px;top:100px;opacity:0.4;transform:rotate(30deg);}

75% {width:100px;height:100px;left:300px;top:0px;opacity:0.8;transform:rotate(60deg);} 

100% {width:100px;height:100px;left:0px;top:0px;opacity:0.2;tranform:rotate(90deg);} 

}

img.movingheart{

position:absolute;

width:100px;

height:100px;

animation-name:movingheart;

animation-duration:6s;

animation-iteration-count:infinite;

animation-direction:normal;

}

img.delay1{

animation-delay:2s;

}

img.delay2{

animation-delay:4s;

}

</style>

</head>

<body>

<img class="movingheart"

class="lazyload" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB/AAffA0nNPuCLAAAAAElFTkSuQmCC" data-original="https://upload.wikimedia.org/wikipedia/commons/thumb/f/f1/Heart_coraz%C3%B3n.svg/169px-Heart_coraz%C3%B3n.svg.png">

<img class="movingheart delay1"

class="lazyload" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB/AAffA0nNPuCLAAAAAElFTkSuQmCC" data-original="http://www.iconsplace.com/download/pink-hearts-512.gif">

<img class="movingheart delay2"

class="lazyload" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB/AAffA0nNPuCLAAAAAElFTkSuQmCC" data-original="http://www.iconsplace.com/download/orange-hearts-512.gif">

</body>

</html>

点击查看更多内容
2人点赞

若觉得本文不错,就分享一下吧!

评论

作者其他优质文章

正在加载中
感谢您的支持,我会继续努力的~
扫码打赏,你说多少就多少
赞赏金额会直接到老师账户
支付方式
打开微信扫一扫,即可进行扫码打赏哦
今天注册有机会得

100积分直接送

付费专栏免费学

大额优惠券免费领

立即参与 放弃机会
意见反馈 帮助中心 APP下载
官方微信

举报

0/150
提交
取消