Toggle navigation
在线编辑器
在线代码
文本比较
jQuery下载
前端库
在线手册
登录/注册
下载代码
html
css
js
分享到微信朋友圈
X
html
Press on me
effect 1
Press on me
effect 2
Press on me
effect 3
Press on me
effect 4
css
/* * demo styles */ @media screen and (min-width: 769px){ html{ font-size: 62.5%; } } @media screen and (min-width: 641px) and (max-width: 768px){ html{ font-size: 56%; } } @media screen and (max-width: 640px){ html{ font-size: 50%; } } body{ font-family: "PT Sans", -apple-system, BlinkMacSystemFont, "Roboto", "Open Sans", "Helvetica Neue", "Segoe UI", "Arial", sans-serif; font-size: 1.6rem; margin: 0; -webkit-overflow-scrolling: touch; background-color: #f0f0f0; } a{ color: inherit } .page{ height: 100vh; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; -ms-flex-pack: distribute; justify-content: space-around; } @media screen and (min-width: 1200px){ .page{ height: 100vh; } } @media screen and (max-width: 1199px){ .page{ min-height: 100vh; } } .demo{ -webkit-box-flex: 2; -ms-flex-positive: 2; flex-grow: 2; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; } .main-container{ width: 100%; max-width: 1300px; padding: 1rem; box-sizing: border-box; } .buttons{ display: -webkit-box; display: -ms-flexbox; display: flex; } @media screen and (max-width: 1199px){ .buttons{ -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; -ms-flex-wrap: wrap; flex-wrap: wrap; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: start; -ms-flex-pack: start; justify-content: flex-start; } .button{ margin-top: 3%; } .button:first-child{ margin-top: 0; } } @media screen and (min-width: 1200px){ .button{ width: 24%; } .button:nth-child(4n+2){ margin-right: .6666%; margin-left: 1.3333% } .button:nth-child(4n+3){ margin-right: 1.3333%; margin-left: .6666%; } } .button__hint{ font-size: 1.4rem; display: block; text-align: center; } .footer{ background-color: #673AB7; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; color: #fff; } @media screen and (max-width: 640px){ .footer{ font-size: 1.4rem; } } .footer__container{ display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; } /* * button */ .button{ cursor: pointer; padding: .8em 2em; box-sizing: border-box; position: relative; overflow: hidden; font-family: inherit; font-size: 1.8rem; color: #fff; text-transform: uppercase; letter-spacing: .5px; outline: none; border: none; background-color: #512DA8; border-radius: 5px; } .button:before{ content: ""; background-color: #448AFF; position: absolute; } .button__label{ position: relative; z-index: 2; } /* effect 1 */ .button_type1:before{ width: 200%; height: 150%; opacity: 0; left: -50%; bottom: 0; -webkit-transform-origin: left bottom; transform-origin: left bottom; -webkit-transform: rotate(-90deg) translateZ(0); transform: rotate(-90deg) translateZ(0); -webkit-transition: opacity 3s cubic-bezier(0.01,-0.24, 0, 0.68), -webkit-transform 3s cubic-bezier(0.01,-0.24, 0, 0.68); transition: opacity 3s cubic-bezier(0.01,-0.24, 0, 0.68), -webkit-transform 3s cubic-bezier(0.01,-0.24, 0, 0.68); transition: transform 3s cubic-bezier(0.01,-0.24, 0, 0.68), opacity 3s cubic-bezier(0.01,-0.24, 0, 0.68); transition: transform 3s cubic-bezier(0.01,-0.24, 0, 0.68), opacity 3s cubic-bezier(0.01,-0.24, 0, 0.68), -webkit-transform 3s cubic-bezier(0.01,-0.24, 0, 0.68); } .button_type1:hover:before, .button_type1:focus:before{ -webkit-transform: rotate(0deg) translateZ(0); transform: rotate(0deg) translateZ(0); opacity: 1; -webkit-transition-duration: .6s, .6s; transition-duration: .6s, .6s; } /* effect 2 */ .button_type2:before{ width: 0; height: 0; padding: 18%; border-radius: 50%; left: 50%; top: 50%; -webkit-transform: translate3d(-50%, -50%, 0) scale(0); transform: translate3d(-50%, -50%, 0) scale(0); -webkit-transition: -webkit-transform .3s cubic-bezier(1, 0.15, 0.34, 1.03); transition: -webkit-transform .3s cubic-bezier(1, 0.15, 0.34, 1.03); transition: transform .3s cubic-bezier(1, 0.15, 0.34, 1.03); transition: transform .3s cubic-bezier(1, 0.15, 0.34, 1.03), -webkit-transform .3s cubic-bezier(1, 0.15, 0.34, 1.03); } .button_type2:hover:before, .button_type2:focus:before{ -webkit-transform: translate3d(-50%, -50%, 0) scale(2.5); transform: translate3d(-50%, -50%, 0) scale(2.5); } /* effect 3 */ .button_type3:before{ width: 200%; height: 25%; opacity: 0; left: 50%; top: 50%; -webkit-transform: translate3d(-50%, -50%, 0) scale(.1); transform: translate3d(-50%, -50%, 0) scale(.1); -webkit-transition: opacity .3s cubic-bezier(1, 0.15, 0.34, 1.03), -webkit-transform .7s cubic-bezier(1, 0.15, 0.34, 1.03); transition: opacity .3s cubic-bezier(1, 0.15, 0.34, 1.03), -webkit-transform .7s cubic-bezier(1, 0.15, 0.34, 1.03); transition: transform .7s cubic-bezier(1, 0.15, 0.34, 1.03), opacity .3s cubic-bezier(1, 0.15, 0.34, 1.03); transition: transform .7s cubic-bezier(1, 0.15, 0.34, 1.03), opacity .3s cubic-bezier(1, 0.15, 0.34, 1.03), -webkit-transform .7s cubic-bezier(1, 0.15, 0.34, 1.03); } .button_type3:hover:before, .button_type3:focus:before{ opacity: 1; -webkit-transform: translate3d(-50%, -50%, 0) scale(5); transform: translate3d(-50%, -50%, 0) scale(5); } /* effect 4 */ .button_type4:before{ width: 20%; height: 200%; opacity: 0; left: 50%; top: 50%; -webkit-transform: translate3d(-50%, -50%, 0) scale(.1); transform: translate3d(-50%, -50%, 0) scale(.1); -webkit-transition: opacity .2s cubic-bezier(1, 0.15, 0.34, 1.03), -webkit-transform 1s cubic-bezier(1, 0.15, 0.34, 1.03); transition: opacity .2s cubic-bezier(1, 0.15, 0.34, 1.03), -webkit-transform 1s cubic-bezier(1, 0.15, 0.34, 1.03); transition: transform 1s cubic-bezier(1, 0.15, 0.34, 1.03), opacity .2s cubic-bezier(1, 0.15, 0.34, 1.03); transition: transform 1s cubic-bezier(1, 0.15, 0.34, 1.03), opacity .2s cubic-bezier(1, 0.15, 0.34, 1.03), -webkit-transform 1s cubic-bezier(1, 0.15, 0.34, 1.03); } .button_type4:hover:before, .button_type4:focus:before{ opacity: 1; -webkit-transition-duration: .7s, .3s; transition-duration: .7s, .3s; -webkit-transform: translate3d(-50%, -50%, 0) scale(5); transform: translate3d(-50%, -50%, 0) scale(5); }
JavaScript
粒子
时间
文字
hover
canvas
3d
游戏
音乐
火焰
水波
轮播图
鼠标跟随
动画
css
加载动画
导航
菜单
按钮
滑块
tab
弹出层
统计图
svg
×
Close
在线代码下载提示
开通在线代码永久免费下载,需支付20jQ币
开通后,在线代码模块中所有代码可终身免费下!
您已开通在线代码永久免费下载,关闭提示框后,点下载代码可直接下载!
您已经开通过在线代码永久免费下载
对不起,您的jQ币不足!可通过发布资源 或
直接充值获取jQ币
取消
开通下载
<!doctype html> <html> <head> <meta charset="utf-8"> <title>CSS动画按钮效果-jq22.com</title> <script src="https://www.jq22.com/jquery/jquery-1.10.2.js"></script> <style>
</style> </head> <body>
<script>
</script>
</body> </html>
2012-2021 jQuery插件库版权所有
jquery插件
|
jq22工具库
|
网页技术
|
广告合作
|
在线反馈
|
版权声明
沪ICP备13043785号-1
浙公网安备 33041102000314号