Home html css Fold Cube Loader - HTML CSS Fold Cube Loader - HTML CSS Author - thinhphamvn December 26, 2022 0 resultindex.htmlstyle.css>>> Download Source Code (Google Drive) Fold Cube Loader * { margin: 0; padding: 0; box-sizing: border-box; } body { min-height: 100vh; display: flex; justify-content: center; align-items: center; background-color: #D86981; } .loading { width: 100px; height: 100px; position: relative; transform: rotateZ(45deg); } .loading .cube { float: left; width: 50%; height: 50%; position: relative; transform: scale(1.1); } .loading .cube:before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: #000C18; animation: fold 2.4s infinite linear both; transform-origin: 100% 100%; } @keyframes fold { 0%, 10% { transform: perspective(140px) rotateX(-180deg); opacity: 0; } 25%, 75% { transform: perspective(140px) rotateX(0deg); opacity: 1; } 90%, 100% { transform: perspective(140px) rotateY(180deg); opacity: 0; } } .loading .cube2 { transform: scale(1.1) rotateZ(90deg); } .loading .cube3 { transform: scale(1.1) rotateZ(180deg); } .loading .cube4 { transform: scale(1.1) rotateZ(270deg); } .loading .cube2:before { animation-delay: 0.3s; } .loading .cube3:before { animation-delay: 0.6s; } .loading .cube4:before { animation-delay: 0.9s; } Tags html css Facebook Twitter Whatsapp Newer Older