:root {
  --pos: left center;
  --size: 0;
}

.wrapper {
  max-width: 744px;
  margin: 2rem auto;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  grid-gap: 1rem;
}

.stats__item {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  padding: 1rem;
  border-radius: 5px;
  box-shadow: 0 3px 10px 0 rgba(0, 0, 0, 0.1);
  overflow: hidden;
  cursor: pointer;
}
.stats__item h3,
.stats__item p {
  /* z-index works becuase those are flex childs.. */
  z-index: 1;
  transition: 0.25s linear;
}
.stats__item h3 {
  color: grey;
  font-size: 1.5rem;
}
.stats__item p {
  font-size: 2.2rem;
  font-weight: bold;
}
.stats__item:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: #7777e9;
  -webkit-clip-path: circle(var(--size) at var(--pos));
          clip-path: circle(var(--size) at var(--pos));
  transition: 0.33s ease-in-out;
}
.stats__item:hover h3,
.stats__item:hover p {
  color: #fff;
}
.stats__item:hover:before {
  --size: 300px;
}

form {
  margin-bottom: 1rem;
}
@media (min-width: 680px) {
  form {
    margin-bottom: 3rem;
  }
}

.demo {
  margin-top: 2rem;
  font-size: 14px;
}

.wrapperClip {
  max-width: 744px;
  margin: 2rem auto;
}
.wrapperClip > * + * {
  margin-top: 1.5rem;
}
.wrapperClip .imgClip {
  --inset-top: 0;
  --inset-right: 0;
  --inset-bottom: 0;
  --inset-left: 100%;
  width: 100%;
  height: auto;
  -webkit-clip-path: inset(var(--inset-top) var(--inset-right) var(--inset-bottom) var(--inset-left));
          clip-path: inset(var(--inset-top) var(--inset-right) var(--inset-bottom) var(--inset-left));
  transition: 0.33s ease-in-out;
}
.wrapperClip .imgClip.is-visible {
  --inset-left: 0;
}/*# sourceMappingURL=clip.css.map */