Toggle navigation
在线编辑器
在线代码
文本比较
jQuery下载
前端库
在线手册
登录/注册
下载代码
html
css
js
分享到微信朋友圈
X
html
你亲手做的
css
@import url("https://fonts.googleapis.com/css2?family=Heebo:wght@100..900&display=swap"); :root { --canvas: 220; --bg: hsl(var(--canvas), 15%, 22%); --fg: hsl(var(--canvas), 39%, 95%); --link: hsl(var(--canvas), 90%, 80%); --linkh: hsl(150, 95%, 70%); --wgt: 200; } body, html { font-family: heebo, sans-serif; color: var(--fg); background: var(--bg); font-weight: var(--wgt); padding: 0 0 50px; display: grid; place-items: center; height: 100%;overflow: hidden } a { color: var(--link); text-decoration: none; font-weight: 450; transition: all 0.3s ease; } a:hover, a:focus, a:active { color: var(--linkh); } button { background: hsl(var(--canvas), 10%, 10%); color: inherit; border: none; border-radius: 0.5em; padding: 0.25em 0.5em; font-family: inherit; font-size: inherit; } .social-icon { stroke-width: 1.25; stroke: currentColor; fill: transparent; background: transparent; stroke-linecap: round; stroke-linejoin: round; position: fixed; bottom: 10px; right: 10px; width: 24px; height: 24px; z-index: 10; animation: iconsLoad 10s ease both 5s; } .social-icon path { fill: none; } .social-icon.twitter { right: 40px; animation-delay: 4s; } .social-icon.codepen { bottom: 10px; right: 80px; width: max-content; animation-delay: 3s; } @keyframes iconsLoad { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0px); } } :root { --glow-hue: 222deg; --shadow-hue: 180deg; --spring-easing: linear( 0, 0.002, 0.01 0.9%, 0.038 1.8%, 0.156, 0.312 5.8%, 0.789 11.1%, 1.015 14.2%, 1.096, 1.157, 1.199, 1.224 20.3%, 1.231, 1.231, 1.226, 1.214 24.6%, 1.176 26.9%, 1.057 32.6%, 1.007 35.5%, 0.984, 0.968, 0.956, 0.949 42%, 0.946 44.1%, 0.95 46.5%, 0.998 57.2%, 1.007, 1.011 63.3%, 1.012 68.3%, 0.998 84%, 1 ); --spring-duration: 1.33s; } @property --shimmer { syntax: "
"; inherits: false; initial-value: 33deg; } @keyframes shimmer { 0% { --shimmer: 0deg; } 100% { --shimmer: 360deg; } } @keyframes shine { 0% { opacity: 0; } 15% { opacity: 1; } 55% { opacity: 1; } 100% { opacity: 0; } } @keyframes text { 0% { background-position: 100% center; } 100% { background-position: -100% center; } } button { color: var(--bg); font-weight: 600; /* background-image: linear-gradient(90deg, #fcecfe, #fbf6e7, #e6fcf5); */ background-image: linear-gradient( 315deg, #ffc4ec -10%, #efdbfd 50%, #ffedd6 110% ); padding: .8em 1.4em; position: relative; isolation: isolate; box-shadow: 0 2px 3px 1px hsl(var(--glow-hue) 50% 20% / 50%), inset 0 -10px 20px -10px hsla(var(--shadow-hue),10%,90%,95%); border-radius: 0.66em; scale: 1; transition: all var(--spring-duration) var(--spring-easing); } button:hover:not(:active), button.active { transition-duration: calc(var(--spring-duration)*0.5); scale: 1.2; box-shadow: 0 4px 8px -2px hsl(var(--glow-hue) 50% 20% / 50%), inset 0 0 0 transparent; } button:active { scale: 1.1; transition-duration: calc(var(--spring-duration)*0.5); } .shimmer { position: absolute; inset: -40px; border-radius: inherit; mask-image: conic-gradient( from var(--shimmer, 0deg), transparent 0%, transparent 10%, black 36%, black 45%, transparent 50%, transparent 60%, black 85%, black 95%, transparent 100% ); mask-size: cover; mix-blend-mode: plus-lighter; animation: shimmer 1s linear infinite both; } button:hover .shimmer::before, button:hover .shimmer::after, button.active .shimmer::before, button.active .shimmer::after { opacity: 1; animation: shine 1.2s ease-in 1 forwards; } .shimmer::before, .shimmer::after { transition: all 0.5s ease; opacity: 0; content: ""; border-radius: inherit; position: absolute; mix-blend-mode: color; inset: 40px; pointer-events: none; } .shimmer::before { box-shadow: 0 0 3px 2px hsl(var(--glow-hue) 20% 95%), 0 0 7px 4px hsl(var(--glow-hue) 20% 80%), 0 0 13px 4px hsl(var(--glow-hue) 50% 70%), 0 0 25px 5px hsl(var(--glow-hue) 100% 70%); z-index: -1; } .shimmer::after { box-shadow: inset 0 0 0 1px hsl(var(--glow-hue) 70% 95%), inset 0 0 2px 1px hsl(var(--glow-hue) 100% 80%), inset 0 0 5px 2px hsl(var(--glow-hue) 100% 70%); z-index: 2; } button .text { color: transparent; background-clip: text; background-color: var(--bg); background-image: linear-gradient(120deg, transparent, hsla(var(--glow-hue),100%,80%,0.66) 40%, hsla(var(--glow-hue),100%,90%,.9) 50%, transparent 52%); background-repeat: no-repeat; background-size: 300% 300%; background-position: center 200%; } button:hover .text, button.active .text { animation: text .66s ease-in 1 both; } body, html { display: flex; height: 100vh; padding: 0; /* background: radial-gradient(circle at 50% 0%, #9588c7 15%, #c79ed5 75%); */ background-image: radial-gradient( circle at 50% 0%, rgb(67, 54, 74) 16.4%, rgb(47, 48, 67) 68.2%, rgb(27, 23, 36) 99.1% ); } main#app { height: 100vh; width: 100vw; display: flex; align-items: center; justify-content: center; }
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号