div+css实现消息提醒checkbox开关效果代码
代码语言:html
所属分类:其他
代码描述:div+css实现消息提醒checkbox开关效果代码
代码标签: div css 消息 提醒 checkbox 开关
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> @import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;700&display=swap"); * { box-sizing: border-box; } html { font-size: 6.25vmax; } @media (max-width: 992px) { html { font-size: 60px; } } body { min-height: 100vh; display: flex; justify-content: center; align-items: center; color: #333; background-color: #eee; font-size: 0.3rem; font-family: "Space Grotesk", sans-serif; position: relative; overflow: hidden; } .deco { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; } .deco .deco-1 { position: absolute; top: 55%; left: 65%; width: 5rem; height: 5rem; transform: translate(-50%, -50%); background-image: radial-gradient(circle at 0 0, #f4c5cd, #ffeecf); border-radius: 5rem; animation: deco-move 8s infinite alternate; filter: blur(10px); } .deco .deco-2 { position: absolute; top: 45%; left: 40%; width: 6rem; height: 6rem; transform: translate(-50%, -50%); background-image: radial-gradient(circle at 0 0, #a1cae9, #f7c6c6); border-radius: 5rem; animation: deco-move 6s infinite alternate; filter: blur(10px); } .deco:after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; backdrop-filter: blur(50px); } .wrapper { width: 6.5rem; border-radius: 12px; padding: 0.3rem 0.5rem; display: flex; justify-content: space-b.........完整代码请登录后点击上方下载按钮下载查看
网友评论0