+ 2

How get old google logo effect on mozilla browsers?

I developing a web page that refer to google... I get a simple old google logo effect without go in complex hierarchy (check code for more) but it dont work on mozilla pre-57 (it dont support background-clip css)... I know that i can simulate same effect with svg but i want know if exists another clean method... This is code: https://code.sololearn.com/WOn15I9E0VH5/?ref=app

25th Apr 2018, 2:01 PM
KrOW
KrOW - avatar
5 Réponses
+ 6
Firefox, Chrome and Safari support the unofficial -webkit-background-clip: text only with prefix. For Firefox android this CSS property is implemented in version 57. So it won't work in pre-57 versions. Check out the browser compatibility. https://caniuse.com/#search=background-clip For older versions either you can use pure SVG or a pollyfill as an alternative. https://github.com/TimPietrusky/background-clip-text-polyfill
26th Apr 2018, 4:15 AM
Ranjan Bagri
Ranjan Bagri - avatar
25th Apr 2018, 4:24 PM
Emma
+ 1
Xan Thanks but its not appropriate to my context... In practice i want apply a gradient to a text but my method dont work in mozilla ... Run my code on android or chrome and see code for understand
25th Apr 2018, 4:35 PM
KrOW
KrOW - avatar
0
Ranjan I know this but i want know if exist another "cleaner" way/hack/method for get same effect without js or messy html hierarchy (i update my code) and that work in major browsers... Thanks for your help
26th Apr 2018, 8:57 AM
KrOW
KrOW - avatar
0
how do i get the logo in my fake google code to show up on the mobile?
12th Jul 2018, 9:54 AM
Black Rose
Black Rose - avatar