style body min height 400px topimgmover animation duration 10 01s animation name changepos animation iteration count infinite animation direction alternate keyframes changepos from transform translate 0 0px 0 0px to transform translate 0 0px 200 0px style div style border 1px solid orange height 200px width 100 position relative overflow hidden img id topimgmover style position absolute left 0px top 200px src var images test512 png div style topimgmover background image url var images test512 png background repeat repeat background position right top animation duration 10 01s animation name changepos animation iteration count infinite animation direction alternate keyframes changepos from background position 0px 0px to background position 0px 400px style div id topimgmover style border 1px solid orange height 200px width 100 position relative overflow hidden div
div style topimgmover background image url var images test512 png background repeat repeat background position right top animation duration 10 01s animation name changepos animation iteration count infinite animation direction alternate keyframes changepos from background position 0px 0px to background position 0px 400px style div id topimgmover style border 1px solid orange height 200px width 100 position relative overflow hidden div