@import url ("Http://daneden.github.io/animate.css/animate.min.css"); : Root { width:100%; height:100%; } Body { width:100%; height:100%; Display:-webkit-flex; Display:-ms-flexbox; Display:flex; -webkit-align-items:center; -ms-flex-align:center; Align-items:center; -webkit-justify-content:center; -ms-flex-pack:center; Justify-content:center; Overflow:hidden; Background-color: #263238; } . papersheet { position:relative; Overflow:hidden; Text-align:center; -moz-box-sizing:border-box; Box-sizing:border-box; -webkit-transition:all 200ms; Transition:all 200ms; width:100%; height:100%; max-width:50%; Min-width:50rem; max-height:50%; Min-height:20rem; margin:0 Auto; Display:-webkit-flex; Display:-ms-flexbox; Display:flex; -webkit-align-items:center; -ms-flex-align:center; Align-items:center; -webkit-justify-content:center; -ms-flex-pack:center; Justify-content:center; } . papersheet.opened { -webkit-transition:all 900ms; Transition:all 900ms; box-shadow:0px 5px 20px rgba (0, 0, 0, 0.5); } . Papersheet__trigger { Z-index:1; Display:inline-block; Padding:2rem; border-radius:50%; Position:absolute; Background-color:transparent; top:50%; left:50%; -webkit-transform:translate (-50%,-50%); -ms-transform:translate (-50%,-50%); Transform:translate (-50%,-50%); -webkit-transition:all 800ms Cubic-bezier (0.19, 1, 0.22, 1); Transition:all 800ms Cubic-bezier (0.19, 1, 0.22, 1); Cursor:pointer; } . Opened. Papersheet__trigger { Background-color: #eceff1; top:10%; } . papersheet__trigger:hover { box-shadow:0px 5px 20px rgba (0, 0, 0, 0.5); } . papersheet__trigger:active:before { Background-color: #d5d5d5; } . papersheet__trigger:before { Content: ""; Background-color: #eceff1; Display:block; Position:absolute; border-radius:50%; top:50%; left:50%; bottom:50%; right:50%; Width:6rem; Height:6rem; z-index:0; Pointer-events:none; -webkit-transform:translate (-50%,-50%); -ms-transform:translate (-50%,-50%); Transform:translate (-50%,-50%); -webkit-transition-delay:2s; Transition-delay:2s; -webkit-transition:all 400ms cubic-bezier (0.165, 0.84, 0.44, 1); Transition:all 400ms cubic-bezier (0.165, 0.84, 0.44, 1); } . Opened. Papersheet__trigger:before { width:3000px; height:3000px; -webkit-transition:all 2.5s cubic-bezier (0.165, 0.84, 0.44, 1); Transition:all 2.5s cubic-bezier (0.165, 0.84, 0.44, 1); } . Papersheet__trigger-icon { Fill: #37474f; Vertical-align:bottom; -webkit-transform:rotate (45DEG); -ms-transform:rotate (45DEG); Transform:rotate (45DEG); -webkit-transition:all 800ms Cubic-bezier (0.19, 1, 0.22, 1); Transition:all 800ms Cubic-bezier (0.19, 1, 0.22, 1); -webkit-transition-delay:50ms; transition-delay:50ms; Width:1.8rem; Height:1.8rem; } . Opened. Papersheet__trigger-icon { -webkit-transform:rotate ( -360DEG); -ms-transform:rotate ( -360DEG); Transform:rotate ( -360DEG); } . Papersheet__face-item { border-radius:50%; Margin:0 1.5rem; Z-index:1; Height:6rem; Width:6rem; Display:none; Overflow:hidden; } . Papersheet__face-item:nth-child (2) { -webkit-animation-delay:50ms; animation-delay:50ms; } . Papersheet__face-item:nth-child (3) { -webkit-animation-delay:150ms; animation-delay:150ms; } . Papersheet__face-item:nth-child (4) { -webkit-animation-delay:250ms; animation-delay:250ms; } . Papersheet__face-item img { max-width:100%; } . Opened. Papersheet__face-item { -webkit-transform:translatex (60%); -ms-transform:translatex (60%); Transform:translatex (60%); Display:block; } |