img{
width: 400px;
height: auto;
animation: heart 0.5s infinite;
}
@keyframes heart {
0%{
transform: scale(1);
}
50%{
transform:scale(1.1);
}
100%{
transform: scale(1);
}
}
转载于:https://www.cnblogs.com/Yanss/p/10257481.html
img{
width: 400px;
height: auto;
animation: heart 0.5s infinite;
}
@keyframes heart {
0%{
transform: scale(1);
}
50%{
transform:scale(1.1);
}
100%{
transform: scale(1);
}
}
转载于:https://www.cnblogs.com/Yanss/p/10257481.html