body{ margin: 0; padding: 0; background: #f7f3ef; } .wrapper{ position: absolute; width: 300px; height: 300px; top: calc(50% - 100px); left: calc(50% - 100px); transform: scale(0.6); } .hex{ position: absolute; top: 10px; left: 10px; } .hex1{ position: absolute; top: 5px; left: 5px; width: 100px; height: 100px; border-radius: 10px; background: #493d2c; transform: rotate(30deg); } .hex1:before{ content: ''; position: absolute; left: 28px; top: -16px; width: 100px; height: 100px; border-radius: 10px; background: #493d2c; transform: rotate(-60deg); } .hex2{ position: absolute; top: -22px; left: -10px; width: 100px; height: 100px; border-radius: 10px; background: #493d2c; } .hex2:after{ content: ''; position: absolute; top: 0px; left: 65px; width: 100px; height: 100px; border-radius: 10px; background: #493d2c; } .hex3{ position: absolute; top: -50px; left: 5px; width: 100px; height: 100px; border-radius: 10px; background: #493d2c; transform: rotate(60deg); } .hex3:before{ content: ''; position: absolute; left: 18px; top: -29px; width: 100px; height: 100px; border-radius: 10px; background: #493d2c; transform: rotate(-30deg); } .wifi1{ position: absolute; top: 30px; left: 18px; width: 130px; height: 20px; border-radius: 4px; background: #fbfb05; box-shadow: 0 0 20px #fbfb05; animation: wifi 2s 0.8s infinite; } @keyframes wifi{ 0%{ opacity: 0; } 50%{ opacity: 0; } 100%{ opacity: 1; } } .wifi2{ position: absolute; top: 65px; left: 18px; width: 130px; height: 20px; border-top-left-radius: 5px; border-top-right-radius: 5px; border-bottom-left-radius: 20px; border-bottom-right-radius: 20px; background: #fbfb05; box-shadow: 0 0 20px #fbfb05; animation: wifi 2s 0.4s infinite; } .wifi3{ position: absolute; top: 100px; left: 60px; width: 40px; height: 20px; border-top-left-radius: 5px; border-top-right-radius: 5px; border-bottom-left-radius: 20px; border-bottom-right-radius: 20px; background: #fbfb05; box-shadow: 0 0 20px #fbfb05; animation: wifi 2s 0s infinite; } .eye1{ position: absolute; top: -20px; left: 35px; width: 12px; height: 12px; border-radius: 360px; background: #fff; animation: eyes 5s 0.5s infinite linear; } .eye2{ position: absolute; top: -20px; left: 112px; width: 12px; height: 12px; border-radius: 360px; background: #fff; animation: eyes 5s 0.5s infinite linear; } @keyframes eyes{ 0%{ top: -20px; height: 12px; } 49%{ top: -20px; height: 12px; } 50%{ top: -15px; height: 2px; } 54%{ top: -15px; height: 2px; } 55%{ top: -20px; height: 12px; } 100%{ top: -20px; height: 12px; } } .eyes:after{ content: ''; position: absolute; top: 0px; left: 75px; width: 12px; height: 12px; border-radius: 360px; background: #fff; } .mouth{ width: 46px; height: 20px; position: absolute; top: -5px; left: 57px; background: #fff; border-bottom-left-radius: 25px; border-bottom-right-radius: 25px; } .mouth:after{ content: ''; width: 46px; height: 20px; position: absolute; top: -11px; left: 0px; background: #493d2c; border-bottom-left-radius: 25px; border-bottom-right-radius: 25px; } .ant1{ position: absolute; top: -60px; left: 80px; width: 100px; height: 100px; border-top-left-radius: 360px; border: 5px solid #493d2c; animation: ant1 5s 0.5s infinite linear; } @keyframes ant1{ 0%{ transform: rotate(0deg); } 40%{ transform: rotate(0deg); } 45%{ transform: rotate(15deg); } 48%{ transform: rotate(11deg); } 50%{ transform: rotate(14deg); } 70%{ transform: rotate(14deg); } 75%{ transform: rotate(-9deg); } 78%{ transform: rotate(4deg); } 80%{ transform: rotate(0deg); } 100%{ transform: rotate(0deg); } } .ant1:after{ content: ''; position: absolute; top: 0px; left: 0px; width: 100px; height: 100px; background: #f7f3ef; border-top-left-radius: 360px; border-right: 6px solid #f7f3ef; border-bottom: 6px solid #f7f3ef; z-index: 0; } .ant1:before{ content: ''; position: absolute; top: -11px; left: 90px; width: 18px; height: 18px; background: #493d2c; border-radius: 360px; z-index: 1; } .ant2{ position: absolute; top: -60px; left: -20px; width: 100px; height: 100px; border-top-left-radius: 360px; border: 5px solid #493d2c; transform: rotate(0deg) scaleX(-1); animation: ant2 5s 0.5s infinite linear; } @keyframes ant2{ 0%{ transform: rotate(0deg) scaleX(-1); } 40%{ transform: rotate(0deg) scaleX(-1); } 45%{ transform: rotate(-15deg) scaleX(-1); } 48%{ transform: rotate(-11deg) scaleX(-1); } 50%{ transform: rotate(-14deg) scaleX(-1); } 70%{ transform: rotate(-14deg) scaleX(-1); } 75%{ transform: rotate(9deg) scaleX(-1); } 78%{ transform: rotate(-4deg) scaleX(-1); } 80%{ transform: rotate(0deg) scaleX(-1); } 100%{ transform: rotate(0deg) scaleX(-1); } } .ant2:after{ content: ''; position: absolute; top: 0px; left: 0px; width: 100px; height: 100px; background: #f7f3ef; border-top-left-radius: 360px; border-right: 5px solid #f7f3ef; border-bottom: 5px solid #f7f3ef; z-index: 0; } .ant2:before{ content: ''; position: absolute; top: -11px; left: 90px; width: 18px; height: 18px; background: #493d2c; border-radius: 360px; z-index: 1; } .credit{ position: absolute; bottom: 5px; left: 5px; font-family: Helvetica Neue; font-size: 12px; font-weight: 300; color: #493d2c; } .credit a{ text-decoration: none; color: #1db0ed; }