fex-team / fis-spriter-csssprites

csssprite
88 stars 37 forks source link

@keyframes 做background-image切换,pack后选择器问题 #11

Open dongkun opened 9 years ago

dongkun commented 9 years ago

example:

@keyframes test { 0%, 80%, 100% {background: url('../images/egg_04.png?sprite');} 5% {background: url('../images/egg_04_pound.png?sprite');} 60% {background: url('../images/egg_04_pound.png?__sprite');} }

pack后 5%{background-position:0px 0px}60%{background-position:0px 0px}0%, 80%, 100%{background-position:-425px 0px}

没有对keyframes 特殊处理。

oxUnd commented 9 years ago

CssSprite 的定位是解决 60-70% 的图片合并问题,暂时没有打算支持 keyframes ;