开发者

css3 rotate just the background or the mask

开发者 https://www.devze.com 2023-02-10 05:05 出处:网络
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 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

精彩评论

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