Created
May 9, 2019 01:28
-
-
Save azl397985856/b5678e8139f255513ef76f80979fc43b to your computer and use it in GitHub Desktop.
SVG - frame- animation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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