css绘制一个悉尼歌剧院效果代码
代码语言:html
所属分类:布局界面
代码描述:css绘制一个悉尼歌剧院效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> * { box-sizing: border-box; } body { width: 100%; height: 100vh; margin: 0; position: fixed; } .canvas { width: 100%; height: 100%; display: flex; flex-direction: column; } .water { background: dodgerblue; height: 150px; z-index: 1; } .sydney_opera_house { background: skyblue; display: flex; flex: 1; flex-direction: column-reverse; align-items: center; --body-background: #fffaf5; } .base { border-bottom: 5px solid #be9f83; height: 25px; width: 1200px; background: var(--body-background); border-radius: 3px; box-shadow: 0px -1px 1px #00000022; position: relative; z-index: 2; } .body { display: flex; justify-content: center; align-items: flex-end; filter: drop-shadow(0 -1px #b39f83) drop-shadow(0 -5px var(--body-background)); position: relative; z-index: 1; } .body_1 { height: 90px; width: 60px; background: var(--body-background); } .body_3 { height: 110px; width: 60px; background: var(--body-background); } .body_2 { height: 90px; width: 40px; background: var(--body-background); transform-origin: 0% 100%; transform: scaleX(0.93) perspective(100px) rotateY(-27deg); } .body_4 { height: 110px; width: 100px; background: var(--body-background); /*background: red;*/ transform-origin: 0% 100%; transform: scaleX(1.65) p.........完整代码请登录后点击上方下载按钮下载查看
网友评论0