Toggle navigation
在线编辑器
在线代码
文本比较
jQuery下载
前端库
在线手册
登录/注册
下载代码
html
css
js
分享到微信朋友圈
X
html
Sofa
Gradient
css
body, html { height: 100%; display: flex; margin: 0; padding: 0; box-sizing: border-box; justify-content: center; align-items: center; font-family: arial; font-size: 12px; } body { background: linear-gradient(to right, #24243e, #302b63, #24243e); } .colours { position: absolute; bottom: 1em; display: flex; flex-direction: column; } .colours__labels { display: flex; margin-bottom: 0.5em; } .colours__labels span { display: block; flex: 1; text-align: center; text-transform: uppercase; letter-spacing: 2px; font-size: 0.9em; color: white; text-shadow: 0px 0px 4px black; } .colours__labels span:last-child { flex: 2; } .colours__inputs { display: flex; } .colours .jscolor { display: block; border: 0; height: 40px; width: 60px; margin: 0; text-align: center; box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3); cursor: pointer; } .colours .jscolor:first-child { border-radius: 6px 0 0 6px; } .colours .jscolor:last-child { border-radius: 0 6px 6px 0; } .couch { width: 1000px; height: 394px; -webkit-transform: scale(0.66); transform: scale(0.66); position: relative; transition: 0.25s ease-in-out; } .couch__overlay, .couch__img { position: absolute; top: 0; left: 0; } .couch__overlay { z-index: 2; fill: #fcff4d; mix-blend-mode: multiply; } @media (max-width: 940px) { .couch { -webkit-transform: scale(0.5); transform: scale(0.5); } } @media (max-width: 580px) { .couch { -webkit-transform: scale(0.38); transform: scale(0.38); } } @media (max-width: 460px) { .couch { -webkit-transform: scale(0.4); transform: scale(0.4); } }
JavaScript
var background = ["#24243e", "#302b63"]; const body = document.getElementsByTagName("body")[0]; const couch = document.getElementById("js-couch"); function updateCouch(picker) { couch.style.fill = picker.toHEXString(); } function updateBackgroundD(picker) { background[0] = picker.toHEXString(); body.style.background = "linear-gradient(to right, " + background[0] + " , " + background[1] + " , " + background[0] + ")"; } function updateBackgroundL(picker) { background[1] = picker.toHEXString(); body.style.background = "linear-gradient(to right, " + background[0] + " , " + background[1] + " , " + background[0] + ")"; }
粒子
时间
文字
hover
canvas
3d
游戏
音乐
火焰
水波
轮播图
鼠标跟随
动画
css
加载动画
导航
菜单
按钮
滑块
tab
弹出层
统计图
svg
×
Close
在线代码下载提示
开通在线代码永久免费下载,需支付20jQ币
开通后,在线代码模块中所有代码可终身免费下!
您已开通在线代码永久免费下载,关闭提示框后,点下载代码可直接下载!
您已经开通过在线代码永久免费下载
对不起,您的jQ币不足!可通过发布资源 或
直接充值获取jQ币
取消
开通下载
<!doctype html> <html> <head> <meta charset="utf-8"> <title>沙发选色SVG+混合模式技巧-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号