css实现一个卡通星球宇宙效果代码
代码语言:html
所属分类:布局界面
代码描述:css实现一个卡通星球宇宙效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> .box{ position: absolute; left: 0%; top: 0%; height: 100%; width: 100%; background: radial-gradient(circle,#001f54,12%,#001f54,45%,black); } .planet{ position: relative; margin: auto; width: 400px; height: 400px; background: transparent; border-radius: 50%; margin-top: 170px; box-shadow: inset 2px 1px 4px #5a189a, inset -7px -5px 2px #000, inset 5px 6px 4px #240046, inset 4px -6px 4px #240046, inset -50px -1px rgba(199,125,255,0.15), inset 15px 10px 30px #5a189a, inset -10px -20px 8px rgba(22,138,173,0.3), inset -10px -30px 8px rgba(26,117,159,0.3), inset -10px -50px 8px rgba(52,160,164,0.3), inset -10px -40px 8px rgba(170,204,0,0.3), inset -10px -60px 2px rgba(128,237,153,0.3); } .planet::before{ content: ""; position: absolute; width: 10px; height: 20px; top: 30%; left: 12%; background: white; border-radius: 50%/25%; transform: rotate(30deg); } .planet::after{ content: ""; positio.........完整代码请登录后点击上方下载按钮下载查看
网友评论0