纯css实现鼠标悬浮满天星闪烁背景动画效果代码
代码语言:html
所属分类:背景
代码描述:纯css实现鼠标悬浮满天星闪烁背景动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> @import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@100&display=swap"); @property --rotate { syntax: "<angle>"; initial-value: 0deg; inherits: false; } :root { --rotate: 0deg; --radius: 12; --bg: hsl(210 30% 70% / 0.15); --width: 40; --height: 40; --border: 0; --blur: 10; --alpha: 0; font-family: "Montserrat", sans-serif; } body { background-color: #25282a; background-image: radial-gradient(#535150a0 0.95px, transparent 0.95px), radial-gradient(#535150a0 0.95px, #25282a 0.95px); background-size: 38px 38px; background-position: 0 0, 19px 19px; min-height: 100vh; display: grid; place-content: center; padding: 0 10vw; } .gd:hover { --border: 1; } .gd { box-sizing: border-box; position: relative; display: grid; place-items: center; padding-inline: 1em; font-size: clamp(1rem,.........完整代码请登录后点击上方下载按钮下载查看
网友评论0