adobe dreamweaver
新建html文档。
书写hmtl代码。
初始化css代码。。button,hr,input{overflow:visible}audio,canvas,progress,video{display:inline-block}progress,sub,sup{vertical-align:baseline}html{font-family:sans-serif;line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0} menu,article,aside,details,footer,header,nav,section{display:block}h1{font-size:2em;margin:.67em 0}figcaption,figure,main{display:block}figure{margin:1em 40px}hr{box-sizing:content-box;height:0}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}a{background-color:transparent;-webkit-text-decoration-skip:objects}a:active,a:hover{outline-width:0}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}dfn{font-style:italic}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}audio:not([controls]){display:none;height:0}img{border-style:none}svg:not(:root){overflow:hidden}button,input,optgroup,select,textarea{font-family:sans-serif;font-size:100%;line-height:1.15;margin:0}button,input{}button,select{text-transform:none}[type=submit], [type=reset],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:ButtonText dotted 1px}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}[hidden],template{display:none}/*# sourceMappingURL=normalize.min.css.map */
书写css代码。body { background: #000; height: 100vh; overflow: hidden; display: -webkit-box; display: -ms-flexbox; display: flex; font-family: 'Anton', sans-serif; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-perspective: 400px; perspective: 400px; }div { position: absolute; -webkit-transform-style: preserve-3d; transform-style: preserve-3d; -webkit-backface-visibility: hidden; backface-visibility: hidden; }#window { width: 300px; height: 400px; }#window .panel_frame { top: -150px; left: -150px; width: 75px; height: 98px; border: 150px solid black; -webkit-box-sizing: content-box; box-sizing: content-box; -webkit-transform: translate3d(112.5px, 151px, 300px); transform: translate3d(112.5px, 151px, 300px); border-radius: 152px; -webkit-box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.3) inset; box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.3) inset; }#window .panel_back { width: 1000px; height: 1200px; background: linear-gradient(220deg, white 0%, #969696 100%); -webkit-transform: translate3d(-50%, -50%, -250px); transform: translate3d(-50%, -50%, -250px); }#window .pillar { width: 100px; height: 400px; background: linear-gradient(220deg, #f0f0f0 0%, #969696 100%); overflow: hidden; }#window .pillar .ref { left: 45%; width: 45%; height: 100%; background: -webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 0.5)), to(rgba(255, 255, 255, 0.2))); background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.2) 100%); -webkit-transform: translateZ(1px); transform: translateZ(1px); -webkit-filter: blur(12px); filter: blur(12px); mix-blend-mode: screen; }#window .pillar::before { content: ''; position: absolute; width: 100%; height: 100%; background: -webkit-gradient(linear, right top, left top, from(rgba(0, 0, 0, 0.15)), color-stop(10%, rgba(0, 0, 0, 0.1)), color-stop(50%, rgba(255, 255, 255, 0))); background: linear-gradient(270deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.1) 10%, rgba(255, 255, 255, 0) 50%); }#window .pillar::after { content: ''; position: absolute; width: 100%; height: 100%; background: linear-gradient(300deg, black 0%, rgba(0, 0, 0, 0) 31%); }#window .wall { width: 159px; height: 400px; background: linear-gradient(220deg, #f0f0f0 0%, #646464 100%); -webkit-transform: translate(100px, 256px); transform: translate(100px, 256px); }#window .wall::before { content: ''; position: absolute; width: 100%; height: 100%; background: -webkit-gradient(linear, right top, left top, from(rgba(100, 100, 100, 0.1)), color-stop(5%, rgba(255, 255, 255, 0))); background: linear-gradient(270deg, rgba(100, 100, 100, 0.1) 0%, rgba(255, 255, 255, 0) 5%); }#window .step { -webkit-transform: rotateY(-50deg); transform: rotateY(-50deg); }#window .step_inner { -webkit-transform: translateX(99.4px); transform: translateX(99.4px); }#window .step_top { width: 150px; height: 37px; background: linear-gradient(220deg, #f0f0f0 0%, #969696 100%); -webkit-transform-origin: 0 100%; transform-origin: 0 100%; -webkit-transform: translateY(-37px) rotateX(90deg); transform: translateY(-37px) rotateX(90deg); }#window .step_top::before { content: ''; position: absolute; width: 100%; height: 100%; background: linear-gradient(-20deg, rgba(200, 200, 200, 0.4) 0%, rgba(100, 100, 100, 0.6) 100%); -webkit-clip-path: polygon(0 0, 100% 0, 92% 60%, 30% 100%, 0 100%); clip-path: polygon(0 0, 100% 0, 92% 60%, 30% 100%, 0 100%); }#window .step_top::after { content: ''; position: absolute; top: 0; left: 0; width: 50%; height: 100%; opacity: 0; background: -webkit-gradient(linear, left top, right top, from(rgba(255, 255, 255, 0)), to(rgba(255, 255, 255, 0.2))); background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 100%); -webkit-transform: translate3d(-100%, 0, -1px); transform: translate3d(-100%, 0, -1px); }#window .step_side { width: 150px; height: 20px; background: linear-gradient(195deg, #c8c8c8 0%, #646464 100%); }#window .step_side::before { content: ''; position: absolute; width: 100%; height: 100%; background: white; opacity: 1; -webkit-transform: translateZ(1px); transform: translateZ(1px); }#window .step_side::after { content: ''; position: absolute; top: 0; left: 0; width: 50%; height: 100%; opacity: 0; background: -webkit-gradient(linear, left top, right top, from(rgba(255, 255, 255, 0)), to(rgba(255, 255, 255, 0.2))); background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 100%); -webkit-transform: translate3d(-100%, 0, -1px); transform: translate3d(-100%, 0, -1px); }#window .step:nth-child(1) { -webkit-animation: stepAnimation 10000ms -500ms linear infinite; animation: stepAnimation 10000ms -500ms linear infinite; }#window .step:nth-child(1) .step_side::before { -webkit-animation: stepColor 10000ms -500ms linear infinite; animation: stepColor 10000ms -500ms linear infinite; }#window .step:nth-child(1) .step_side::after { -webkit-animation: stepRefrection 10000ms -500ms linear infinite; animation: stepRefrection 10000ms -500ms linear infinite; }#window .step:nth-child(1) .step_top::before { -webkit-animation: stepShadow 10000ms -500ms linear infinite; animation: stepShadow 10000ms -500ms linear infinite; }#window .step:nth-child(1) .step_top::after { -webkit-animation: stepRefrection 10000ms -500ms linear infinite; animation: stepRefrection 10000ms -500ms linear infinite; }#window .step:nth-child(2) { -webkit-animation: stepAnimation 10000ms -1000ms linear infinite; animation: stepAnimation 10000ms -1000ms linear infinite; }#window .step:nth-child(2) .step_side::before { -webkit-animation: stepColor 10000ms -1000ms linear infinite; animation: stepColor 10000ms -1000ms linear infinite; }#window .step:nth-child(2) .step_side::after { -webkit-animation: stepRefrection 10000ms -1000ms linear infinite; animation: stepRefrection 10000ms -1000ms linear infinite; }#window .step:nth-child(2) .step_top::before { -webkit-animation: stepShadow 10000ms -1000ms linear infinite; animation: stepShadow 10000ms -1000ms linear infinite; }#window .step:nth-child(2) .step_top::after { -webkit-animation: stepRefrection 10000ms -1000ms linear infinite; animation: stepRefrection 10000ms -1000ms linear infinite; }#window .step:nth-child(3) { -webkit-animation: stepAnimation 10000ms -1500ms linear infinite; animation: stepAnimation 10000ms -1500ms linear infinite; }#window .step:nth-child(3) .step_side::before { -webkit-animation: stepColor 10000ms -1500ms linear infinite; animation: stepColor 10000ms -1500ms linear infinite; }#window .step:nth-child(3) .step_side::after { -webkit-animation: stepRefrection 10000ms -1500ms linear infinite; animation: stepRefrection 10000ms -1500ms linear infinite; }#window .step:nth-child(3) .step_top::before { -webkit-animation: stepShadow 10000ms -1500ms linear infinite; animation: stepShadow 10000ms -1500ms linear infinite; }
代码整体结构。
查看效果。