CodePen

HTML

            
              <h1>Animate with Translate</h1>

<div id="animate"></div>
            
          
!

↑ Insert the most common viewport meta tag

CSS

            
              body {
  padding: 30px;
}

#animate {
  position: absolute;
  top: 100px;
  left: 30px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: red;
  
  animation: move 3s ease infinite;
}

@keyframes move {
  50% {
     transform: translate(100px, 100px);
  }
}
            
          
!
? ?
? ?
Must be a valid URL.
+ add another resource
via CSS Lint

JS

            
              
            
          
!
Must be a valid URL.
+ add another resource
via JS Hint
Loading ..................