css3 自动变大变小缩放按钮,css扩散效果
样式1:
<style> #Jsubmit.btn_gdj_design { -webkit-animation: free_download1 3s linear alternate infinite; animation: free_download1 3s linear alternate infinite; } .btn-submit { background: #206cfe; height: 45px; line-height: 45px; display: block; width: 90%; border-radius: 45px; font-size: 18px; padding: 0; border: 0; margin: 0 auto 10px auto; color: #fff; font-weight: 700; } @-webkit-keyframes free_download1 { 0% { transform: scale(0.9) } 20% { transform: scale(1) } 40% { transform: scale(0.9) } 60% { transform: scale(1) } 80% { transform: scale(0.9) } 100% { transform: scale(1) } } @keyframes free_download1 { 0% { transform: scale(0.9) } 20% { transform: scale(1) } 40% { transform: scale(0.9) } 60% { transform: scale(1) } 80% { transform: scale(0.9) } 100% { transform: scale(1) } } </style> <button class="btn-submit btn_gdj_design" id="Jsubmit">立即获取报价</button>
样式2:
<style> .sjh-form-list-box .template-enhance-animation { -webkit-animation: templateEnlargeShrink 2s infinite; -o-animation: templateEnlargeShrink 2s infinite; animation: templateEnlargeShrink 2s infinite; overflow: hidden; -webkit-transform: translateZ(0); transform: translateZ(0); } .sjh-form-list-box .template-enhance-animation-light { position: absolute; top: 0; width: 6.1625rem; height: 2.8125rem; background-image: url('https://fe-resource.cdn.bcebos.com/mip/fengming/form/light_animate.png'); background-size: 6.1625rem 2.8125rem; -webkit-animation: templateSearchLights 3s linear infinite forwards; -o-animation: templateSearchLights 3s linear infinite forwards; animation: templateSearchLights 3s linear infinite forwards; -webkit-transform-style: preserve-3d; -webkit-backface-visibility: hidden; -webkit-perspective: 1000; -webkit-transform: translateZ(0); transform: translateZ(0); } @keyframes templateSearchLights { 0% { transform: translate(-5.66123188rem); -webkit-transform: translate(-5.66123188rem); opacity: 0; } 66% { transform: translate(-5.66123188rem); -webkit-transform: translate(-5.66123188rem); opacity: 1; } 100% { transform: translate(24.90942029rem); -webkit-transform: translate(24.90942029rem); } } @keyframes templateEnlargeShrink { 0% { transform: scale(1); -webkit-transform: scale(1); -ms-transform: scale(1); } 33% { transform: scale(0.95); -webkit-transform: scale(0.95); -ms-transform: scale(0.95); } 66% { transform: scale(1); -webkit-transform: scale(1); -ms-transform: scale(1); } 100% { transform: scale(1); -webkit-transform: scale(1); -ms-transform: scale(1); } } .sjh-form-list-box .button { font-size: .36rem; color: #fff; text-decoration: none; text-align: center; display: block; box-sizing: border-box; -webkit-appearance: none; -moz-appearance: none; -ms-appearance: none; appearance: none; padding: 0; margin: 0 auto; height: .8rem; line-height: .8rem; white-space: nowrap; position: relative; text-overflow: ellipsis; font-family: inherit; cursor: pointer; width: 90%; background-color: red; border-radius: 1.5rem; background-image: -webkit-linear-gradient(45deg, rgb(230, 50, 46), rgb(255, 25, 98)); } </style> <div class="sjh-form-list-box submit-control"> <div class="template-enhance-animation" style=""> <div class="button" > 立即获取报价 </div> <div class="template-enhance-animation-light"></div> </div> </div>
分类:
html/js/jquery
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 单元测试从入门到精通
· 上周热点回顾(3.3-3.9)
· winform 绘制太阳,地球,月球 运作规律
2018-05-21 WINDOW 安装ImageMagick服务端和PHP的imagick插件
2018-05-21 安装PHP扩展32位与64位的误区(x86与x64的查看)
2018-05-21 linux 安装 ImageMagick 和 imagick 扩展