css - Box Shadow in Firefox -


i have problem box-shadow in firefox - "lags":

this css:

-moz-box-shadow : 0 0 5px #333; -webkit-box-shadow : 0 0 5px #333; box-shadow : 0 0 5px #333; 

in chrome, works (without "lag"), in firefox it's slow.

how can fix this?

this has been known bug in firefox years. box-shadow can cause slow scrolling or, when animating element box-shadow assigned, firefox can crawl. fix eiher restrict blur radius 10px or filter out box-shadow firefox:

.fubar {     box-shadow: 10px 10px 30px #000;     -moz-box-shadow:none !important; }  @-moz-document url-prefix() {     .fubar {         box-shadow:none;     } } 

Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -