SOURCE

console 命令行工具 X clear

                    
>
console
<script src="http://ossweb-img.qq.com/images/js/zepto/zepto.min.js"></script>
<script src="http://ossweb-img.qq.com/images/js/motion/film.min.js"></script>
<body>	
		<p>雪碧图sprite形式</p>
    <button onclick="spritePic.playByIndex(19, {playTime:4600, direction:'forward'})">向前播放到第5帧</button>
		<div >
			<div id="sprite" style="background-color:#1f1f29;"></div>
		</div>
	</div>
<script>
var spritePic = new mo.Film(document.getElementById('sprite'),{
	resource : 'http://game.gtimg.cn/images/datamore/m/DataMore/idata/a20160725idata2years/thirdpage.png',
	totalFrame : 20
});
</script>