svg+js实现钻石数量选择拖动条效果代码
代码语言:html
所属分类:表单美化
代码描述:svg+js实现钻石数量选择拖动条效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> @import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap"); * { box-sizing: border-box; position: relative; } html, body { height: 100%; width: 100%; margin: 0; padding: 0; font-family: Poppins, sans-serif; } html *::-moz-selection, body *::-moz-selection { background: var(--color-primary); color: white; } html *::selection, body *::selection { background: var(--color-primary); color: white; } :root { --color-primary: #fb6446; } body { background: #e8e8f0; color: #111e3c; min-height: 100vh; display: grid; place-items: center; } .app { background-color: #fff; padding: 2rem 3rem; overflow: hidden; box-shadow: 0 0 2rem rgba(0, 0, 0, 0.1); border-radius: 1em; display: flex; flex-direction: column; gap: 1rem; } .diamond-slider { margin-top: 5rem; margin-bottom: 1rem; } .diamond-slider #slider { display: block; width: 100%; } .slider { display: grid; grid-template-areas: "layer"; .........完整代码请登录后点击上方下载按钮下载查看
网友评论0