css实现鼠标滚动提示指示动画效果代码
代码语言:html
所属分类:动画
代码描述:css实现鼠标滚动提示指示动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
@import url(https://fonts.googleapis.com/css?family=Cabin);
body {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
background-color: #222a30;
}
p {
margin-top: 50px;
font-family: "Cabin", 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 linear-gradient(transparent 0%, transparent 50%, #ffffff 50%, #ffffff 100%);
position: relative;
width: 52px;
height: 88px;
border-radius: 100px;
background-size: 100% 200%;
-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 {
w.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0