A Pen by Viktor

Thumbnail
This awesome code was written by vigtor, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright vigtor ©
  • HTML
  • CSS
<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  <title>A Pen by  Viktor</title>
  
  
  
      <link rel="stylesheet" href="css/style.css">

  
</head>

<body>

  <div id="header"><div id="pxl"></div></div>
  
  

</body>

</html>

/*Downloaded from https://www.codeseek.co/vigtor/a-pen-by-viktor-oLNpGd */
#header {
  background-color: #000;
  height: 200px;
  width:700px;
}

#pxl {
  background-color: #fff;
  width:10px;
  height: 2px;
  bottom:0;
  position: relative;
  -webkit-animation: slider 1s infinite;
}

@keyframes slider {
  from {
     left:0;
  }
  to {
    left:700px;
  }
}

Comments