css实现鼠标悬浮小鸟分解动画效果代码
代码语言:html
所属分类:悬停
代码描述:css实现鼠标悬浮小鸟分解动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
@import url("https://fonts.googleapis.com/css2?family=DynaPuff:wght@400;500&display=swap");
body {
background-color: #074e3d;
transition: all 1.5s;
transition-timing-function: cubic-bezier(0.1, 1.31, 0.81, 0.96);
}
body.hovered {
background-color: #110f56;
transition: all 1.5s;
transition-timing-function: cubic-bezier(0.1, 1.31, 0.81, 0.96);
}
.display-none {
display: none !important;
}
.feet.right::after, .feet.left::after {
content: "";
display: block;
position: absolute;
}
.eyes,
.head,
.face,
.noise,
.back,
.tummy,
.tail-1,
.tail-2,
.feet,
.left,
.right,
.butt,
.spot {
position: absolute;
transition: all 1.5s;
transition-timing-function: cubic-bezier(0.1, 1.31, 0.81, 0.96);
}
.eyes {
background: #ffffff;
border-radius: 100%;
width: 55px;
height: 55px;
z-index: 6;
top: 35px;
left: 35px;
}
.head {
background: #50b58d;
transform: rotate(-15.38deg);
width: 129px;
height: 129px;
border-radius: 46%;
position: absolute;
z-index: 5;
left: 0;
bottom: 171px;
}
.face {
background: #50b58d;
transform: rotate(-15.38deg);
width: 66px;
height: 88px;
top: 69px;
left: 12px;
z-index: 1;
}
.noise {
width: 97px;
height: 37px;
background: #f87902;
top: 86px;
left: -35px;
border-radius: 100px;
transform: rotate(-14.58deg);
}
.tummy {
background: #50b58d;
width: 203px;
height: 144px;
transform: rotate(-16.07deg);
border-radius: 100px;
top: 65px;
left: 21px;
}
.back {
background: #50b58d;
width: 140px;
height: 222px;
left: 84px;
top: -22px;
border-radius: 0px 222px 0px 0px;
transform: rotate(-15.15deg);
}
.spot {
left: 108px;
top: 69px;
background: #231f20;
border-radius: 16px 80px 50px 65px;
transform: rotate(33.83deg);
opacity: 0.........完整代码请登录后点击上方下载按钮下载查看
网友评论0