文字霓虹灯点亮效果
代码语言:html
所属分类:动画
代码描述:文字霓虹灯点亮效果
代码标签: 效果
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@900&display=swap'); body { padding: 0; margin: 0; background: #18191f; font-family: 'Poppins', sans-serif; display: flex; justify-content: center; align-items: center; height: 100vh; } ul { position: relative; display: flex; } li { list-style: none; } label { position: relative; } input[type="checkbox"] { position: absolute; opacity: 0; cursor: pointer; height: 80px; width: 80px; z-index: 100; } div { position: relative; height: 80px; width: 80px; background: #18191f; color: #555; display: flex; display: flex; justify-content: center; align-items: center; font-size: 46px; cursor: pointer; margin: 0 4px; border-radius: 20px; box-shadow: -1px -1px 4px rgba(255, 255, 255, 0.05), 4px 4px 6px rgba(0, 0, 0, 0.2), inset -1px -1px 4px rgba(255, 255, 255, 0.05), inset 1px 1px 1px rgba(0, 0, 0, 0.1); } div:before { content: ""; position: absolute; top: 2px; left: 2px; width: 75px; he.........完整代码请登录后点击上方下载按钮下载查看
网友评论0