<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
body{
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background: rgb(73, 71, 239);
}
div{
position: relative;
background: rgb(11, 156, 219);
width: 100px;
height: 100px;
box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5), -8px -9px 9px rgba(255, 255, 255, 0.6) inset,-8px -9px 9px rgba(255, 255, 255, 0.6) inset,5px 5px 10px rgba(0, 0, 0, 0.7) inset;
border-radius: 51% 49% 47% 53% / 87% 78% 22% 13% ;
animation: aaa 3s linear infinite;
}
div::before{
position: absolute;
content: " ";
left: 30px;
top:40px;
display: block;
width: 8px;
height: 10px;
background: #ffffff;
box-shadow:5px 5px 10px rgb(20, 20, 20);
border-radius: 66% 34% 36% 64% / 68% 40% 60% 32% ;
}
div::after{
position: absolute;
content: " ";
left: 50px;
top:50px;
display: block;
width: 7px;
height: 6px;
background: #ffffffe6;
box-shadow:5px 5px 15px rgb(20, 20, 20);
border-radius: 70% 30% 50% 50% / 68% 56% 44% 32% ;
}
@keyframes aaa{
20%{
border-radius:53% 47% 76% 24% / 50% 51% 49% 50% ;
}
40%{
border-radius:70% 30% 68% 32% / 62% 51% 49% 38% ;
}
60%{
border-radius: 70% 30% 50% 50% / 68% 56% 44% 32% ;
}
80%{
border-radius:57% 43% 39% 61% / 68% 44% 56% 32% ;
}
}
</style>
</head>
<body>
<div>
</div>
</body>
</html>
前端--小水滴(动态动画)
最新推荐文章于 2024-10-04 22:03:04 发布