Skip to content

Instantly share code, notes, and snippets.

@azl397985856
Created May 9, 2019 01:28
Show Gist options
  • Save azl397985856/b5678e8139f255513ef76f80979fc43b to your computer and use it in GitHub Desktop.
Save azl397985856/b5678e8139f255513ef76f80979fc43b to your computer and use it in GitHub Desktop.
SVG - frame- animation
<svg viewBox="0, 0, 91, 94" class="warm-face">
<image xlink:href="//yun.duiba.com.cn/h5/millionaire-custom/top-180118/assets/faces.png" width="3458" height="94" />
</svg>
.warm-face {
position: relative;
z-index: 25;
top: 62/@rem;
left: -7/@rem;
width: 91/@rem;
height: 94/@rem;
margin: 0 auto;
image {
animation: facestep 2s steps(38) infinite alternate;
}
}
@keyframes facestep {
100% {
transform: translate3d(-3458px, 0, 0);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment