继续浏览精彩内容
慕课网APP
程序员的梦工厂
打开
继续
感谢您的支持,我会继续努力的
赞赏金额会直接到老师账户
将二维码发送给自己后长按识别
微信支付
支付宝支付

心形动态图,拷贝来的

牧心心
关注TA
已关注
手记 2
粉丝 5
获赞 6

<!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"

src="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"

src="http://www.iconsplace.com/download/pink-hearts-512.gif">

<img class="movingheart delay2"

src="http://www.iconsplace.com/download/orange-hearts-512.gif">

</body>

</html>

打开App,阅读手记
2人推荐
发表评论
随时随地看视频慕课网APP