用html实现Ae粒子爱心代码
时间: 2023-10-05 08:10:18 浏览: 95
好的,以下是实现Ae粒子爱心代码的HTML代码:
```
<!DOCTYPE html>
<html>
<head>
<style>
body {
background-color: black;
}
.heart {
width: 50px;
height: 50px;
background-color: #FF69B4;
position: relative;
margin: auto;
transform: rotate(45deg);
animation: pulse 1s ease-in-out infinite;
}
.heart::before,
.heart::after {
content: "";
position: absolute;
background-color: inherit;
}
.heart::before {
width: 50px;
height: 50px;
top: -25px;
border-radius: 25px 25px 0 0;
}
.heart::after {
width: 50px;
height: 50px;
left: -25px;
border-radius: 0 25px 25px 0;
}
@keyframes pulse {
0% {
transform: scale(0.7);
}
50% {
transform: scale(1);
}
100% {
transform: scale(0.7);
}
}
</style>
</head>
<body>
<div class="heart"></div>
</body>
</html>
```
希望能够帮助到你。