D.Va - Hexagon Overwatch Loader (HTML, CSS)

HTML
<svg version="1.2" baseProfile="tiny" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="170.49px" height="177px" viewBox="0 0 170.49 177" overflow="inherit" xml:space="preserve"> <polygon class="hex" points="16.623,87 0,58.5 16.623,30 49.868,30 66.49,58.5 49.868,87 "/> <polygon class="hex" points="68.623,57 52,28.5 68.623,0 101.868,0 118.49,28.5 101.868,57 "/> <polygon class="hex" points="120.623,87 104,58.5 120.623,30 153.868,30 170.49,58.5 153.868,87 "/> <polygon class="hex" points="120.623,147 104,118.5 120.623,90 153.868,90 170.49,118.5 153.868,147 "/> <polygon class="hex" points="68.623,177 52,148.5 68.623,120 101.868,120 118.49,148.5 101.868,177 "/> <polygon class="hex" points="16.623,147 0,118.5 16.623,90 49.868,90 66.49,118.5 49.868,147 "/> <polygon class="hex" points="68.623,117 52,88.5 68.623,60 101.868,60 118.49,88.5 101.868,117 "/> </svg> <div class="after"><b>reconnecting...</b></div>
CSS
body { background: #fff url("https://kazasou.files.wordpress.com/2017/01/yande-re-380856-bodysuit-d-va-ellowas-headphones-mecha-overwatch-signed.jpg")no-repeat; background-attachment: fixed; background-size: 125%; background-position: center top; } body { height: 100vh; margin: 0; display: flex; align-items: center; justify-content: center; background-color: #DB5A9B; } .svg { width: 300px; height: 300px; } .hex { fill: rgba(255,255,255,.9); animation: fadein 3.3s infinite; opacity: 0; transform-origin: 50% 50%; } .hex:nth-child(2) { animation-delay: .2s; } .hex:nth-child(3) { animation-delay: .4s; } .hex:nth-child(4) { animation-delay: .6s; } .hex:nth-child(5) { animation-delay: .8s; } .hex:nth-child(6) { animation-delay: 1.0s; } .hex:nth-child(7) { animation-delay: 1.2s; } @keyframes fadein { 0%, 100% { transform: scale(0.001,0.001); opacity: 0; } 33%, 66% { transform: scale(.9,.9); opacity: 1; } } .after { content: ""; color: #DB5A9B; background: #fff; position: absolute; border-radius: 5px; }
JAVASCRIPT
Expand for more options Login