svg实现空气的爱心动画效果代码
代码语言:html
所属分类:动画
代码描述:svg实现空气的爱心动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
:root {
background-color: #ffd8d8;
}
#couple {
display: block;
margin-left: auto;
margin-right: auto;
width: 50%;
-webkit-filter: saturate(2);
filter: saturate(2);
}
#hearts {
-webkit-animation: heartpulse 4s infinite;
animation: heartpulse 4s infinite;
}
@keyframes heartpulse {
0% {
fill: #8c2d49;
}
50% {
fill: #8e485d;
scale: 1.1;
-webkit-transform: scale(1.1, 1.1);
}
100% {
fill: #a872a8;
}
}
</style>
</head>
<body >
<svg xmlns="http://www.w3.org/2000/svg" id="couple" viewBox="0 0 600 500">
<defs />
<g id="couple-svgs">
<path fill="#552249" d="M343.38 283.28l.12.94a9.05 9.05 0 00-1.31 8.38c.33 1 .7 2 1.1 2.91a10.83 10.83 0 01.89 4.43 26.53 26.53 0 01-3.8 13.19 8.41 8.41 0 00-1.48 4c-.18 6.65.17 13.29-.16 20 .22-.16.47-.25.58-.43 1.16-1.94 3-2.75 5.09-3.23s4.58-.61 6.86-.94a20.91 20.91 0 017.36.12c.78.84.36 1.89.48 2.85a5.17 5.17 0 00.24 3.18l.06 1.06c-.87-.13-1.75-.19-2.6-.38-4.9-1.12-9.5-.17-14 1.9-1.74.81-3.27 2-5 2.78a3.31 3.31 0 00-2 1.82 31.08 31.08 0 01-4.61 7.24c-2.15 2.57-4 5.38-6.13 8-2 2.43-1.95 5.13-1.44 7.94a12.19 12.19 0 00.61 2.32 9.78 9.78 0 01-5.16 12.25 18.58 18.58 0 00-5.63 4.4c-1.42 1.55-1.48 2.18-.24 4a25.27 25.27 0 005 5.09c3.37 2.74 5.45 6.09 4.63 10.62-1.12 6.27-3.5 11.95-8.15 16.47a31.54 31.54 0 00-4.18 4.93c-2.32 3.41-3.11 3.1.84 6.13 2.67 2.05 4.67 4.57 4.85 8.17a35.65 35.65 0 01-2.51 15.48c-2.39 5.83-6.37 10.12-12.71 11.7a25.41 25.41 0 01-6.15.85c-1.82 0-1.82.08-2.18 1.81-.48 2.34-.9 4.7-1.47 7a16 16 0 01-3.31 7.11 68.67 68.67 0 01-5.8 6.38c-4.09 3.54-8.64 5.66-14.24 4.57-1.17-.23-2.36-.36-3.54-.53-2.63-1.13-5.41-1.92-8-3.2a2.32 2.32 0 00-2.84.57 16.91 16.91 0 01-7.8 4c-2 .55-4 1.05-6 1.65-6.44 2-11.95.2-16.86-4.09a22.21 22.21 0 01-3.48-4c-2.25-3.2-5.31-3.83-8.89-3a6.6 6.6 0 00-1.15.34c-3.72 1.59-7.45 1.33-11.25.23-3.07-.9-6.1-1.88-9.13-2.9-7.94-2.7-12.68-8.39-15.09-16.16-2.11-6.8-3.08-13.73-.9-20.75.33-1.06.25-1.69-1-1.76-.56 0-1.1-.26-1.65-.31-7.4-.78-13.09-4.78-18.26-9.73-4.53-4.32-5.81-9.53-4.33-15.55a29.27 29.27 0 014.42-10.29 1.58 1.58 0 00.45-1.25l-2.48-1a7.92 7.92 0 01-5.08-7.7 17.76 17.76 0 012.1-8.05c.72-1.51 1.66-2.91 2.48-4.37a4.82 4.82 0 001.08-2.45 6.39 6.39 0 00-2.73-.52c-8.11-.53-13.23-4.95-15-12.93a23 23 0 01-.31-7.63 35.3 35.3 0 015.77-16.58 143.15 143.15 0 019.36-12.15 31.07 31.07 0 018.59-6.83l2.52-1.4a2.21 2.21 0 00-.18-.75c-3.28-4-4.05-8.58-3.16-13.55A52.65 52.65 0 01169 288.13a25.26 25.26 0 0113.57-7.63c4.15-.86 6.49-3.46 7.89-7.18a28.11 28.11 0 0110.31-13.5c2.94-2.07 5.81-4.24 8.68-6.41a28.65 28.65 0 019.8-4.89c8.47-2.35 17-4.63 25.54-6.5a51.08 51.08 0 018.79-1.13 31.28 31.28 0 006.18-.68 5.89 5.89 0 011.67-.17c5.7.32 11.29-.75 16.93-1.2a56.43 56.43 0 0112.65.92 46.56 46.56 0 0110.86 2.88 24.51 24.51 0 005.75 1.63c5.92.85 11.39 3.11 16.88 5.29a20.8 20.8 0 019.5 7.54 61.34 61.34 0 017 12c.87 2.13 2.31 4 2.72 6.36a15.7 15.7 0 01-.08 6.8.........完整代码请登录后点击上方下载按钮下载查看
网友评论0