body {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
height: 100vh;
background-color: #222a30;
}
p {
margin-top: 50px;
font-family: 'Microsoft YaHei','Lantinghei SC','Open Sans',Arial,'Hiragino Sans GB','STHeiti','WenQuanYi Micro Hei','SimSun',sans-serif;
letter-spacing: 12px;
text-indent: 12px;
color: #ffffff;
-webkit-animation: colorText 5s ease-out infinite, nudgeText 5s ease-out infinite;
animation: colorText 5s ease-out infinite, nudgeText 5s ease-out infinite;
}
.mouse {
background: #4e5559 -webkit-linear-gradient(transparent 0%, transparent 50%, #ffffff 50%, #ffffff 100%);
background: #4e5559 linear-gradient(transparent 0%, transparent 50%, #ffffff 50%, #ffffff 100%);
position: relative;
width: 52px;
height: 88px;
background-size: 100% 100%;
border-radius: 100px;
background-size: 225%;
-webkit-animation: colorSlide 5s linear infinite, nudgeMouse 5s ease-out infinite;
animation: colorSlide 5s linear infinite, nudgeMouse 5s ease-out infinite;
}
.mouse:before, .mouse:after {
content: "";
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
margin: auto;
}
.mouse:before {
width: 46px;
height: 82px;
background-color: #222a30;
border-radius: 100px;
}
.mouse:after {
background-color: #ffffff;
width: 10px;
height: 10px;
border-radius: 100%;
-webkit-animation: trackBallSlide 5s linear infinite;
animation: trackBallSlide 5s linear infinite;
}
@-webkit-keyframes colorSlide {
0% {
background-position: 0% 100%;
}
20% {
background-position: 0% 0%;
}
21% {
background-color: #4e5559;
}
29.99% {
background-color: #ffffff;
background-position: 0% 0%;
}
30% {
background-color: #4e5559;
background-position: 0% 100%;
}
50% {
background-position: 0% 0%;
}
51% {
background-color: #4e5559;
}
59.99% {
background-color: #ffffff;
background-position: 0% 0%;
}
60% {
background-color: #4e5559;
background-position: 0% 100%;
}
80% {
background-position: 0% 0%;
}
81% {
background-color: #4e5559;
}
89.99%, 100% {
background-color: #ffffff;
}
} <div class="mouse"></div>
<p>鼠标滚动</p>
*
回帖描述:*
链接类型:*
下载链接:*
描述:*
回帖描述:*
链接类型:*
阅读权限:*
下载链接:



聚优部落技术论坛 © 版权所有 鲁ICP备15007479号-6
Copyright(C)web.com, All Rights Reserved.
