LOADING...

Preview

Pen ID
Unlock Campus Themeforest adv

 

Code
CSS
:root {
  --color_base: #ff5c26;
  --color_wifi: white;
}

body {
  background-color: var(--color_base);
  text-align: center;
}

.u-hidden {
  display: none;
}

.internet {
  width: 150px;
  height: 150px;
  margin-top: 15%;
  display: inline-block;
  position: relative;
}

.wifi {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}
.wifi__path {
  fill: var(--color_wifi);
}
.wifi--01 {
  fill-opacity: 0.3;
}
.wifi--02 {
  -webkit-animation: connect 1.3s 1s 3000 ease-in-out alternate;
          animation: connect 1.3s 1s 3000 ease-in-out alternate;
  -webkit-clip-path: circle(0 at 50% 99%);
          clip-path: circle(0 at 50% 99%);
}

@-webkit-keyframes connect {
  0% {
    -webkit-clip-path: circle(0 at 50% 99%);
            clip-path: circle(0 at 50% 99%);
  }
  25% {
    -webkit-clip-path: circle(20% at 50% 99%);
            clip-path: circle(20% at 50% 99%);
  }
  50% {
    -webkit-clip-path: circle(35% at 50% 99%);
            clip-path: circle(35% at 50% 99%);
  }
  75% {
    -webkit-clip-path: circle(60% at 50% 99%);
            clip-path: circle(60% at 50% 99%);
  }
  100% {
    -webkit-clip-path: circle(90% at 50% 99%);
            clip-path: circle(90% at 50% 99%);
  }
}

@keyframes connect {
  0% {
    -webkit-clip-path: circle(0 at 50% 99%);
            clip-path: circle(0 at 50% 99%);
  }
  25% {
    -webkit-clip-path: circle(20% at 50% 99%);
            clip-path: circle(20% at 50% 99%);
  }
  50% {
    -webkit-clip-path: circle(35% at 50% 99%);
            clip-path: circle(35% at 50% 99%);
  }
  75% {
    -webkit-clip-path: circle(60% at 50% 99%);
            clip-path: circle(60% at 50% 99%);
  }
  100% {
    -webkit-clip-path: circle(90% at 50% 99%);
            clip-path: circle(90% at 50% 99%);
  }
}
JS
/* 
 * #codevember - 16: BROKEN INTERNET
 * Resizable wifi SVG icon with just 1 Sass edit.
 * By ilithya | 2017
 *
 * Original wifi SVG icon by Icomoon from www.flaticon.com 
 */

Description

Simply SVG icon animated via CSS for #codevember.
Term
Wed, 12/06/2017 - 19:43

Related Codes

Pen ID
Pen ID
Pen ID
Square Adv