css布局实现水滴效果代码
代码语言:html
所属分类:布局界面
代码描述:css布局实现水滴效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> body{ background:black; } .container{ position:relative; width:400px; height:300px; background:#121212; margin:172px auto; display:-webkit-box; display:flex; -webkit-box-pack:center; justify-content:center; } .circ{ position:absolute; width:132px; height:132px; border-radius: 121px 121px 121px 0; background: -webkit-gradient(linear, left bottom, left top, color-stop(5%, #962161), color-stop(65%, #12bbea)); background: linear-gradient(0deg, #962161 5%, #12bbea 65%); border:7px solid #330060; -webkit-transform:rotate(135deg); transform:rotate(135deg); top:70px } .c6{ position:absolute; width: 102px; height: 132px; border-bottom: 3px solid white; border-left: 3px solid transparent; border-right: 3px solid transparent; border-radius: 132px / 100px; -webkit-transform:rotate(-142deg); transform:rotate(-142deg); margin: -135px 3px; opacity:.5 } .c6:before{ content:""; position:absolute; width: 50px; height: 90px; border-top: 3px solid white; border-left: 3px solid transparent; border-right: 3px solid transparent; border-radius: 132px / 100px; -webkit-transform:rotate(-3deg); transform:rotate(-3deg); margin: 80px 0px; opacity:1 } .c7{ position:absolute; width:90px; height: 121px; border-radius: 50%; margin: -5px 25px; -webkit-transform:rotate(-60deg); transform:rotate(-60deg); background: radial-gradient(circle at 50% 25%, #139cdd0d 5%, transparent 5%), radial-gradient( closest-side circle at 50% 25%, #db3b7d 100%, transparent 100% ), radial-gradient(circle at 50% 75%, rgba(255,255,255,0.1) 5%, transparent 5%), radial-gradient( closest-side circle at 50% 75%, #0ebeff 100%, transparent 100% ), -webkit-gradient(linear, left top, right top, color-stop(50%, #db3b7d), color-stop(50%, #0ebeff)); background: radial-gradient(circle at 50% 25%, #139cdd0d 5%, transparent 5%), radial-gradient( closest-side circle at 50% 25%, #db3b7d 100%, transparent 100% ), radial-gradient(circle at 50% 75%, rgba(255,255,255,0.1) 5%, transparent 5%), radial-gradient( closest-side circle at 50% 75%, #0ebeff 100%, transparent 100% ), linear-gradient(to righ.........完整代码请登录后点击上方下载按钮下载查看
网友评论0