加减步进选择框动画效果
代码语言:html
所属分类:表单美化
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> @import url("https://fonts.googleapis.com/css?family=Rubik&display=swap"); :root { --color-black: #112c34; --color-blue-dark: #65849a; --color-mustard-light: #ede6d9; --color-mustard-extra-light: #fcf9ed; --color-mustard-midtone: #9c7830; } * { font-family: "Rubik", sans-serif; box-sizing: border-box; font-weight: 400; color: var(--color-black); -webkit-font-smoothing: antialiased; /* disable tap highlight color on mobile safari */ tap-highlight-color: rgba(0, 0, 0, 0); -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } body { width: 100%; height: 100%; margin: 0 auto; /* disable double tap to zoom on mobile */ touch-action: manipulation; transition: background-color 0.2s ease-out; } #wrapper { position: absolute; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; } form { width: 100%; max-width: 340px; padding: 56px 48px; border-radius: 40px; box-shadow: 0px 8px 40px rgba(128, 128, 128, 0.15); display: flex; flex-direction: column; align-items: center; background-color: #fffef9; } form > div { margin-bottom: 32px; } form > div:last-child { margin-bottom: 0; } .number-input-container { width: 244px; display: grid; grid-template-columns: 48px auto 48px; } label { display: inline-block; margin-bottom: 4px; font-size: 12px; line-height: 24px; letter-spacing: 2px; text-transform: uppercase; color: var(--color-blue-dark); } .number-input { width: 100%; display: flex; flex-direction: row; background-color: var(--color-mustard-extra-light); overflow: hidde.........完整代码请登录后点击上方下载按钮下载查看
网友评论0