开发者

css3 rotate just the background or the mask

I was wondering if it is possible to rotate just the background image or mask with CSS3. The css3 transform rotate, rotates the whole element.

I failed googleing, maybe someone has an idea?

webkit example: http://jsfiddle.net/meo/Atjdq/1/ (i want to rotate just the mask or alter开发者_运维知识库natively the background)


I'm pretty sure you have to use a separate element, containing just the background image (or mask), if you want to rotate the background (or mask) independently.

Something like this, perhaps? http://jsfiddle.net/mattball/k9t5e/1/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜