.container
  p.resize resize container
  .dots
    span
    span
    span
    span
    span
    span
  .content
    h1 Animating border-radius
    span & 
    h2 mix-blend-mode: luminosity
    p.
    | Follow me 
    a(href="https://twitter.com/andrejsharapov" target="_blank") in Twitter
    | .
    | Part of the 
    a(href="https://codepen.io/collection/DPjNmW/" target="_blank") CSS Mix-blend-mode here
    | .

section
  h2 Mix-blend-mode: luminosity
  p.
    Lorem ipsum dolor sit amet, consectetur adipisicing elit. Temporibus soluta, quas dolore, non, officia ea sequi molestias assumenda libero ratione expedita hic consequatur eos ipsum et quasi id incidunt odit?
  p.
    Lorem ipsum dolor, sit amet consectetur adipisicing elit. Harum error id aspernatur magni rem provident nemo nulla corporis culpa laudantium. Ea temporibus non vitae voluptatem sunt, pariatur odio dolorem harum.
  p
    Lorem ipsum dolor sit amet, consectetur adipisicing elit. Temporibus soluta, quas dolore, non, officia ea sequi molestias assumenda libero ratione expedita hic consequatur eos ipsum et quasi id incidunt odit?
  p
    Lorem ipsum dolor, sit amet consectetur adipisicing elit. Harum error id aspernatur magni rem provident nemo nulla corporis culpa laudantium. Ea temporibus non vitae voluptatem sunt, pariatur odio dolorem harum.
footer
  .copy Copyright © 2019
View Compiled
$color_one: #ab49de;
$color_two: #5b41f2;
$bgcolor: #201c29;
$light: #fefefe;

*,
::before,
::after {
  box-sizing: border-box;
}

::-webkit-scrollbar {
  width: 0;
  height: 0;
}

body {
  margin: 0;
  font-family: "Dosis", sans-serif;
  font-size: 62.5%;
  cursor: col-resize;
  background-color: $bgcolor;
}

.container,
 section {  
  height: 100vh;
}

.container {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: $bgcolor;

  &::before,
  &::after {
    position: absolute;
    width: 350px;
    height: 350px;
    content: "";
    border-radius: 54% 46% 42% 58% / 60% 58% 42% 40%;
    background-image: linear-gradient(45deg, $color_one, $color_two);
    animation: vawe 5s linear infinite;
  }

  &::before {
    top: -10%;
    right: -10%;
  }
  
  &::after {
    bottom: -10%;
    left: -15%;
  }

  .dots {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    span {
      position: absolute;
      border-radius: 50%;
      background-image: linear-gradient(
        45deg, 
        $color_one, 
        $color_two
      );
      border-radius: 38% 62% 55% 45% / 32% 53% 47% 68% ;
    animation: vawe 7s linear infinite;
      
      &:nth-child(1) {        
        top: 10%;
        left: calc(100% - 360px);
        width: 75px;
        height: 75px;
      }

      &:nth-child(2) {
        top: 15px;
        left: 180px;
        width: 50px;
        height: 50px;
        border-radius: 38% 62% 33% 67% / 60% 53% 47% 40%;
        transform: rotate(90deg);
      }

      &:nth-child(3) {
        right: 180px;
        bottom: 20px;
        width: 80px;
        height: 80px;
        border-radius: 38% 62% 55% 45% / 52% 53% 47% 48%;
      }

      &:nth-child(4) {
        bottom: 50px;
        left: 240px;
        width: 20px;
        height: 20px;
        border-radius: 38% 62% 55% 45% / 52% 53% 47% 48%;
      }

      &:nth-child(5) {
        right: 280px;
        bottom: 80px;
        width: 25px;
        height: 25px;
        border-radius: 38% 62% 55% 45% / 52% 53% 47% 48%;
      }
      
      &:nth-child(6) {        
        top: 6%;
        left: calc(100% - 400px);
        width: 25px;
        height: 25px;
      }
    }
  }
}

.resize {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 10px;
  z-index: 2;
  text-transform: uppercase;
  font-size: 1rem;
  color: $light;
}

.content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: 70%;
  padding: 1em;
  text-align: center;
  font-size: 1.25rem;
  border-radius: 0.5em;
  background-color: $bgcolor;
  border: 12px solid rgba($color_two, 0.5);
  color: $color_two;
  mix-blend-mode: luminosity;

  h1 {
    margin: 0;
    font-size: 5vw;
    letter-spacing: 5px;
  }
  
  a {
    text-decoration: none;
    color: $color_one;
  }
}

section {
  padding: 3em 1em;
  font: normal 1rem "Montserrat", sans-serif;
  color: $bgcolor;
  background-color: $light;
  
  h2 {
    margin-bottom: 1em;
  }
}

footer {
  padding: 1em;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1rem;
  color: $light;
}

@keyframes vawe {
  20% {
    border-radius: 45% 55% 62% 38% / 53% 51% 49% 47%;
  }
  40% {
    border-radius: 45% 55% 49% 51% / 36% 51% 49% 64%;
  }
  60% {
    border-radius: 60% 40% 57% 43% / 47% 62% 38% 53%;
  }
  80% {
    border-radius: 60% 40% 32% 68% / 38% 36% 64% 62%;
  }
}
View Compiled
Run Pen

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.