I have a problem with box-shadow
in Firefox - it "lags":
This is my CSS:
-moz-box-shadow : 0 0 5px #333;
-webkit-box-shadow : 0 0 5px #333;
box-shadow : 0 0 5px #333;
In Chrome, it works normally (without "lag"), but in Firefox it's slow.
How can I fix this?
The box-shadow property of CSS 3 is supported by recent versions of all browsers.
Select the text or WordArt that you want to format. On the Format tab, under Text Styles, click Effects, point to Shadow, and then click the shadow style that you want.
The box-shadow CSS property adds shadow effects around an element's frame. You can set multiple effects separated by commas. A box shadow is described by X and Y offsets relative to the element, blur and spread radius, and color.
If there is something with a shadow or border on your blog that you wish to get rid of, look for the element in the CSS section of your template. Find box-shadow or border property and change it the value to 0 or none .
This has been a known bug in Firefox for years. Box-shadow can cause slow scrolling or, when you are animating an element to which box-shadow is assigned, Firefox can crawl. The fix is to eiher restrict blur radius to 10px or filter out the box-shadow from Firefox:
.fubar {
box-shadow: 10px 10px 30px #000;
-moz-box-shadow:none !important;
}
@-moz-document url-prefix() {
.fubar {
box-shadow:none;
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With