开发者

Increase performance of box-shadow

开发者 https://www.devze.com 2023-03-21 16:23 出处:网络
I think it\'s quite likely the answer is n开发者_如何学Co, but someone might know something I don\'t.

I think it's quite likely the answer is n开发者_如何学Co, but someone might know something I don't.

I've got an image gallery with sorting buttons that, when clicked, sorted the gallery in an animated style using Isotope. Each image has a nice box-shadow around it, but the animation is sluggish and jerky, due to having to render the shadow all the time.

My question is this: Is there a way to speed up box shadow without changing the blur radius, etc?


I suspect there's no way to speed it up.

Have you considered toggling off the box-shadow while the animation is running?

Does the box-shadow use an rgba colour with transparency? Maybe it would be faster without transparency.

0

精彩评论

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