https://alvarotrigo.com/fullPage/#examplescss
中【關閉】按鈕效果特酷,因而學習下html
<a href="#" class="info-close"></a>
.info-close { position: fixed; top: 20px; right: 48px; z-index: 999; font-size: 3em; cursor: pointer; height: 50px; width: 50px; box-sizing: border-box; line-height: 50px; display: inline-block; -webkit-transition: all 530ms cubic-bezier(.48,.030,.195,1); -webkit-transition: all 530ms cubic-bezier(.48,.030,.195,1.51); -moz-transition: all 530ms cubic-bezier(.48,.030,.195,1.51); -o-transition: all 530ms cubic-bezier(.48,.030,.195,1.51); transition: all 530ms cubic-bezier(.48,.030,.195,1.51); transform: scale(0) translateZ(0) } .examples.active .info-close { transform: scale(1) translateZ(0); } .info-close:after,.info-close:before { transform: rotate(-45deg); content: ''; position: absolute; top: 50%; left: 50%; margin-top: -5px; margin-left: -25px; display: block; height: 10px; width: 50px; background-color: #fff; transition: all .25s ease-out } .info-close:after { transform: rotate(-135deg) } .info-close:hover:after,.info-close:hover:before { transform: rotate(0) }