<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/3/Harry-Potter-1-.jpg" alt="" class="clip-svg">

<svg width="0" height="0">
    <clipPath id="myClip" clipPathUnits="objectBoundingBox">
      <circle cx="0.7" cy="0.7" r="0.3"/>
      <circle cx="0.5" cy="0.5" r="0.3"/>
img {
  width: 120px;
  margin: 20px;
  animation: move 2s alternate infinite linear;

@keyframes move {
  to {
    margin-left: 100px;

.clip-svg {
  clip-path: url(#myClip);

body {
  background: linear-gradient(
    to bottom,

body, html {
  height: 100%;

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.