单个div+css实现灯泡串联一起效果代码
代码语言:html
所属分类:布局界面
代码描述:单个div+css实现灯泡串联一起效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> body { min-height: 400px; height: 100vh; position: relative; background-color: #191970; } div { position: absolute; left: 0; top: 50%; } div::before { display: block; content: ''; position: absolute; } #luminous { width: 100%; height: 400px; left: 0; margin-top: -200px; background: linear-gradient(to right, rgba(255,255,255,0) 44%, #191970 44%, #191970 56%, rgba(255,255,255,0) 56%) 50% 40.3%/10em 1.6em, linear-gradient(to right, rgba(255,255,255,0) 42%, white 42%, white 58%, rgba(255,255,255,0) 58%) 50% 40%/10em 2em, radial-gradient(circle at 61% 50%, rgba(255,255,255,0) 7%, white 7.5%, white 11%, rgba(255,255,255,0) 11.5%) 50% 40%/10em 2em, radial-gradient(circle at 50% 100%, rgba(255,255,255,0) 64%, white 64.5%, white 68%, rgba(255,255,255,0) 68.5%) calc(50% - 5em) 22%/10em 5em, linear-gradient(to right, rgba(255,255,255,0) 42%, white 42%, white 43%, rgba(255,255,255,0) 43%) calc(50% + 0.4em) 48%/10em 2em, linear-gradient(to right, rgba(255,255,255,0) 42%, white 42%, white 43%, rgba(255,255,255,0) 43%) calc(50% + 1em) 48%/10em 2em, radial-gradient(circle, rgba(255,255,255,0) 8%, white.........完整代码请登录后点击上方下载按钮下载查看
网友评论0