css实现向下滚动按钮提示动画效果代码
代码语言:html
所属分类:动画
代码描述:css实现向下滚动按钮提示动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<html> <head> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/font-awesome-4.7.0/css/font-awesome.min.css"> <style> * { margin: 0px; padding: 0px; box-sizing: border-box; } *:focus { box-shadow: none; border: none; outline: none; } body, html { height: 100%; width: 100%; background-color: #1F1F1F; } body, p { font: 400 18px/30px "Poppins", sans-serif; color: #5d6483; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } a { text-decoration: none; color: #4154fe; } h1, h2, h3, h4, h5, h6, p, a { margin: 0px; } h1, h2, h3, h4, h5, h6 { font-weight: normal; -webkit-font-variant-ligatures: common-ligatures; font-variant-ligatures: common-ligatures; } a:hover, a:focus, input:focus, button:focus, a:active { text-decoration: none; outline: none; outline-offset: 0px; box-shadow: none; } ul { list-style: none; margin: 0; padding: 0; } input, textarea, select { border: 1px solid #d1d1d1; font-size: 14px; padding: 8px 15px; width: 100%; resize: none; } /*-----end default style (you can remove this code)------*/ .css-scroll-down { display: flex; flex-flow: row; align-items: flex-start; padding: 50px 30px; } .css-scroll-down .single-scroll-down-animation { margin-right: 20px; width: calc(25% - 20px); margin-bottom: 50px; } .css-scroll-down .single-scroll-down-animation h4 { text-transform: uppercase; font-weight: 700; font-size: 20px; text-align: center; margin-bottom: 30px; } .scroll-down1 { width: 50px; height: 50px; border-radius: 100%; border: 2px solid #00b4ff; font-size: 30px; overflow: hidden; cursor: pointer; display: flex; flex-flow: column; align-items: center; justify-content: center; margin: 0 auto; } .scroll-down1 i { color: #00b4ff; animation: scrollDown1 1.5s ease infinite; } @keyframes scrollDown1 { 0% { transform: translateY(-15px); opacity: 0; } 50% { transform: translateY(0px); opacity: 1; } 100% { transform: translateY(15px); opacity: 0; } } .scroll-down2 { width: 30px; height: 50px; border: 2px solid #00b4ff; border-radius: 50px; cursor: pointer; position: relative; overflow: hidden; margin: 0 auto; } .scroll-down2:before { content: ""; position: absolute; left: 50%; top: 20px; width: 6px; height: 6px; border-radius: 100%; transform: translateX(-50%); background: #00b0ff; animation: scrollDown2 1.5s ease infinite; } .scroll-down2:after { content: ""; position: absolute; left: 50%; top: 5px; width: 6px; height: 15px; border-radius: 3px; transform: translateX(-50%); background: #00b0ff; } @keyframes scrollDown2 { 0% { transform: translate(-50%, 0px); opacity: 0; } 50% { transform: translate(-50%, 8px); opacity: 1; } 100% { transform: translate(-50%, .........完整代码请登录后点击上方下载按钮下载查看
网友评论0