css实现炫光走光动态按钮效果
代码语言:html
所属分类:表单美化
代码描述:css实现炫光走光动态按钮效果
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> body { background-color: #313131; display: -webkit-box; display: flex; -webkit-box-pack: center; justify-content: center; -webkit-box-align: center; align-items: center; height: 100vh; font-family: -apple-system,BlinkMacSystemFont,segoe ui,Roboto,Oxygen-Sans,Ubuntu,Cantarell,helvetica neue,sans-serif } button { display: block; position: relative; top: 0; border: 0; cursor: pointer; background: #9ccc65; color: #fff; border-radius: 3px; line-height: 1; font-size: 20px; padding: 15px 25px; outline: 0; margin: 20px; box-shadow: 0 5px 10px rgba(0,0,0,.1) } button.shiny { background: #007eaf; background: linear-gradient(-45deg,#2284fb 50%,#0a0e92 60%,#2e59d4 70%); background-size: 600% 100%; -webkit-animation: shine 20s infinite; animation: shine 20s infinite; -webkit-animation-delay: 0s; animation-delay: 0s; .........完整代码请登录后点击上方下载按钮下载查看
网友评论0