SOURCE

console 命令行工具 X clear

                    
>
console
<div class="heart"></div>
body,html{
  width:100%;
  height:100%;
}
body{
  position:relative;
}
.heart{
  width:100px;
  height:100px;
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  background:url("https://cssanimation.rocks/images/posts/steps/heart.png") no-repeat;
  background-position:0 0;
  cursor:pointer;
  animation:an-heart 1s steps(28);
}
.heart:hover{
  background-position:-2800px 0;
  transition:background 1s steps(28);
}
 @keyframes an-heart{
  0%{
    background-position:0 0;
  }
  100%{
    background-position:-2800px 0;
  }
}