Toggle navigation
在线编辑器
在线代码
文本比较
jQuery下载
前端库
在线手册
登录/注册
下载代码
html
css
js
分享到微信朋友圈
X
html
在下框中输入任意文字
{{m}}
css
body { background: #84fab0; background-image: linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%); font-family: 'Lato', sans-serif; font-size: 14px; overflow:hidden; } .red { background-image: linear-gradient(to right, #f78ca0 0%, #f9748f 19%, #fd868c 60%, #fe9a8b 100%); } .container { position:absolute; left:50%; top:50%; -webkit-transform: translate(-50%,-50%); transform: translate(-50%,-50%); margin-top:-30px; text-align:center; } h1 { color: #fff; text-transform: uppercase; margin-bottom: 10px; } .nice-input { position: absolute; } .nice-input input { border:none; border-radius:4px; padding:7px 10px; font-family: 'Lato', sans-serif; font-size:14px; box-shadow: rgba(0,0,0,.05) 0 5px 20px; letter-spacing:0; width:165px; color: transparent; font-weight:900; } .nice-input input:focus { outline:none; box-shadow: rgba(0,0,0,.1) 0 5px 20px; } .nice-input label { position: absolute; top: 6px; left: 10px; letter-spacing:0; font-size:0; } .nice-input span { font-family: 'Lato', sans-serif; font-size:14px; font-weight:900; } .nice-input__animate { -webkit-animation: print .2s 1 ease-in-out; animation: print .2s 1 ease-in-out; } .shake { -webkit-animation: shake .2s 1 ease-in-out; animation: shake .2s 1 ease-in-out; } @-webkit-keyframes print { from{ position:absolute; -webkit-transform: scale(50); transform: scale(50); /* uncomment for freeze */ /* filter:blur(1px); */ } 99% { position:absolute; } to { position:relative; } } @keyframes print { from{ position:absolute; -webkit-transform: scale(50); transform: scale(50); /* uncomment for freeze */ /* filter:blur(1px); */ } 99% { position:absolute; } to { position:relative; } } @-webkit-keyframes shake { from, to { } 50% { -webkit-transform:scale(0.97); transform:scale(0.97); } } @keyframes shake { from, to { } 50% { -webkit-transform:scale(0.97); transform:scale(0.97); } }
JavaScript
var app = new Vue({ el: '.container', data: { message: '' }, watch: { message: { handler: function(after,before){ if (after.length > before.length) { setTimeout(function(){ document.querySelector('.nice-input').classList.add('shake'); setTimeout(function(){ document.querySelector('.nice-input').classList.remove('shake'); },300); },200); } } } }, computed: { message2: function(){ return this.message.split(''); } } });
粒子
时间
文字
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号