Toggle navigation
在线编辑器
在线代码
文本比较
jQuery下载
前端库
在线手册
登录/注册
下载代码
html
css
js
分享到微信朋友圈
X
html
Inspired by:
Colin Garven
Submit
css
@import 'https://fonts.googleapis.com/css?family=Roboto:300,500,700'; body { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-box-align: center; -webkit-align-items: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: center; -webkit-justify-content: center; -ms-flex-pack: center; justify-content: center; -webkit-box-orient: vertical; -webkit-box-direction: normal; -webkit-flex-direction: column; -ms-flex-direction: column; flex-direction: column; height: 100vh; widht: 100vw; overflow: hidden; background: #fafafa; font-family: "Roboto", sans-serif; font-weight: 400; font-size: 14px; font-smooth: auto; -webkit-font-smoothing: antialiased; } header { position: absolute; top: 30px; width: calc(30px + 15em); left: calc(50% - 15px - 7.5em); display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-flex-flow: row nowrap; -ms-flex-flow: row nowrap; flex-flow: row nowrap; -webkit-box-align: center; -webkit-align-items: center; -ms-flex-align: center; align-items: center; -webkit-justify-content: space-around; -ms-flex-pack: distribute; justify-content: space-around; margin-bottom: 1em; font-size: 0.8em; } header .header--text { letter-spacing: 1px; } header .header--text span { color: #777; font-weight: 300; margin-bottom: 0; } header .header--text a { display: inline-block; margin-top: 0; text-decoration: none; font-weight: 700; color: #ea4c89; -webkit-transition: color 300ms ease; transition: color 300ms ease; } header .header--text a:hover { color: #ef7aa7; } header #logo-dribbble { width: 2em; height: auto; fill: #ea4c89; -webkit-transition: fill 300ms ease; transition: fill 300ms ease; } header #logo-dribbble:hover { fill: #ef7aa7; } button.btnSubmit { outline: none; border: none; cursor: default; -webkit-transition: box-shadow 300ms ease; transition: box-shadow 300ms ease; letter-spacing: 2px; box-shadow: 0px 0px 52px 10px rgba(255, 255, 255, 0); -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; position: relative; box-sizing: border-box; width: 175px; height: 50px; border-radius: 35px; border: 2px solid; border-color: #1ECD97; background: none; color: #1ECD97; -webkit-transition: all 300ms ease-out; transition: all 300ms ease-out; } button.btnSubmit:hover { cursor: pointer; font-size: 1.05em; border-color: transparent; background: #1ECD97; color: #fafafa; box-shadow: 0px 0px 52px 10px rgba(255, 255, 255, 0.7); } button.btnSubmit.clicked { pointer-events: none; -webkit-animation: anim1 200ms cubic-bezier(0.2, 0, 0.8, 1), anim2 300ms cubic-bezier(0.6, 0, 0.7, 1) 300ms 1 forwards; animation: anim1 200ms cubic-bezier(0.2, 0, 0.8, 1), anim2 300ms cubic-bezier(0.6, 0, 0.7, 1) 300ms 1 forwards; } button.btnSubmit.clicked.done { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-box-pack: center; -webkit-justify-content: center; -ms-flex-pack: center; justify-content: center; -webkit-box-align: center; -webkit-align-items: center; -ms-flex-align: center; align-items: center; width: 50px; background: #1ECD97; background: -webkit-linear-gradient(0, #1ECD97, #25dfa6); background: linear-gradient(0, #1ECD97, #25dfa6); border: 2px solid transparent; color: rgba(30, 205, 151, 0); -webkit-transition: all 1000ms ease; transition: all 1000ms ease; -webkit-animation: anim4 300ms cubic-bezier(0.2, 0, 0.4, 1) forwards; animation: anim4 300ms cubic-bezier(0.2, 0, 0.4, 1) forwards; } svg.svg--template { display: none; } svg.loader { position: absolute; width: 50px; height: 50px; overflow: visible; } svg.loader { position: absolute; left: -2px; top: -2px; width: 50px; height: 50px; } svg.checkmark { height: 1.2em; width: 100%; } svg .circle1 { stroke: #1ECD97; stroke-width: 3px; r: 23.5px; cx: 25px; cy: 25px; width: 100%; height: 100%; stroke-dasharray: 157px; -webkit-transform: rotate(-90deg); transform: rotate(-90deg); -webkit-transform-origin: 50% 50%; transform-origin: 50% 50%; -webkit-animation: anim3 2.5s cubic-bezier(0.6, 0, 0, 1); animation: anim3 2.5s cubic-bezier(0.6, 0, 0, 1); } svg .checkmark1 { fill: #fafafa; } svg .checkmark1 .line1 { -webkit-transform-origin: 100% 100%; transform-origin: 100% 100%; } svg .checkmark1 .line2 { -webkit-transform-origin: 0% 100%; transform-origin: 0% 100%; } svg .checkmark1 .line1, svg .checkmark1 .line2 { -webkit-animation: growAndRotate 500ms cubic-bezier(0.4, 0, 0, 1); animation: growAndRotate 500ms cubic-bezier(0.4, 0, 0, 1); } @-webkit-keyframes anim1 { 0% { font-size: 1.05em; } 50% { font-size: 0.9em; } 100% { font-size: 1.05emj; } } @keyframes anim1 { 0% { font-size: 1.05em; } 50% { font-size: 0.9em; } 100% { font-size: 1.05emj; } } @-webkit-keyframes anim2 { 40% { border-radius: 35px; } 20%, 100% { color: rgba(30, 205, 151, 0); } 100% { background: none; border-width: 2px; border-color: #C5C5C5; border-radius: 50%; padding: 0; width: 50px; } } @keyframes anim2 { 40% { border-radius: 35px; } 20%, 100% { color: rgba(30, 205, 151, 0); } 100% { background: none; border-width: 2px; border-color: #C5C5C5; border-radius: 50%; padding: 0; width: 50px; } } @-webkit-keyframes anim3 { 0% { stroke-dashoffset: 157px; } 100% { stroke-dashoffset: 0; } } @keyframes anim3 { 0% { stroke-dashoffset: 157px; } 100% { stroke-dashoffset: 0; } } @-webkit-keyframes anim4 { 0% { border-radius: 50%; width: 50px; } 40% { border-radius: 35px; } 100% { width: 175px; } } @keyframes anim4 { 0% { border-radius: 50%; width: 50px; } 40% { border-radius: 35px; } 100% { width: 175px; } } @-webkit-keyframes growAndRotate { 0% { opacity: 0; -webkit-transform: scale(0.4) rotate(-5deg); transform: scale(0.4) rotate(-5deg); } 30%, 100% { opacity: 1; } 100% { -webkit-transform: scale(1) rotate(0); transform: scale(1) rotate(0); } } @keyframes growAndRotate { 0% { opacity: 0; -webkit-transform: scale(0.4) rotate(-5deg); transform: scale(0.4) rotate(-5deg); } 30%, 100% { opacity: 1; } 100% { -webkit-transform: scale(1) rotate(0); transform: scale(1) rotate(0); } } #browserAlert { z-index: 10; display: none; left: 0; top: 0; position: absolute; width: 100vw; height: 100vh; background: rgba(255, 255, 255, 0.8); pointer-events: none; font-size: 2em; } #browserAlert.active { display: block; } #browserAlert.active span { position: absolute; left: 50%; top: 50%; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); } .side-note { padding-top: 1em; position: absolute; display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-box-pack: start; -webkit-justify-content: flex-start; -ms-flex-pack: start; justify-content: flex-start; -webkit-box-align: center; -webkit-align-items: center; -ms-flex-align: center; align-items: center; -webkit-box-orient: vertical; -webkit-box-direction: normal; -webkit-flex-direction: column; -ms-flex-direction: column; flex-direction: column; height: 10em; min-width: 20em; border-top: 2px solid #aeaeae; background: white; z-index: 10; -webkit-transform: rotate(-45deg); transform: rotate(-45deg); -webkit-transform-origin: 100% 100%; transform-origin: 100% 100%; right: -8.5em; bottom: 5em; font-weight: 300; font-size: 0.7em; color: #aeaeae; } .side-note a { color: #7b7b7b; margin-top: 0.3em; cursor: default; text-decoration: underline; color: inherit; font-weight: 500; -webkit-transition: color 300ms ease; transition: color 300ms ease; } .side-note a:hover { color: #616161; }
JavaScript
/* TESTED SUCCESFFULY ON: Chrome 52 / Firefox 48 DON'T VIEW ON: Edge */ $(function() { // check if browser is not supported var $browserAlert = $('#browserAlert'); $browserAlert.hide(); $.ajax({ url: 'https://cdn.rawgit.com/arasatasaygin/is.js/master/is.min.js', dataType: "script", success: function() { if (is.edge() || is.ie()) { $browserAlert.find('span').text('View on Chrome/Firefox.'); $browserAlert.show(); $browserAlert.addClass('active'); } } }); var $btn = $("button.btnSubmit"); var $loaderTemplate = $("svg.loader"); var $checkmarkTemplate = $("svg.checkmark"); $btn.on('click', function() { if ($(this).hasClass('clicked')) return; $(this).addClass('clicked'); var self = $(this); var timeout1 = 600, timeout2 = 2500, timeout3 = 3000; setTimeout(function() { self.append($loaderTemplate.clone()); self.find('svg').removeClass('svg--template'); self.find('svg').css('display', 'initial'); }, timeout1); setTimeout(function() { self.text(''); self.find('svg').remove(); self.append($checkmarkTemplate.clone()); self.find('svg').css('display', 'initial'); self.find('svg').removeClass('svg--template'); self.addClass('done'); }, timeout1 + timeout2); setTimeout(function() { self.find('svg').remove(); self.text('Submit'); self.removeClass('clicked'); self.removeClass('done'); }, timeout1 + timeout2 + timeout3); }); });
粒子
时间
文字
hover
canvas
3d
游戏
音乐
火焰
水波
轮播图
鼠标跟随
动画
css
加载动画
导航
菜单
按钮
滑块
tab
弹出层
统计图
svg
×
Close
在线代码下载提示
开通在线代码永久免费下载,需支付20jQ币
开通后,在线代码模块中所有代码可终身免费下!
您已开通在线代码永久免费下载,关闭提示框后,点下载代码可直接下载!
您已经开通过在线代码永久免费下载
对不起,您的jQ币不足!可通过发布资源 或
直接充值获取jQ币
取消
开通下载
<!doctype html> <html> <head> <meta charset="utf-8"> <title>提交按钮-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号