+ 9

[CSS] Prefix Hell 😢😢

When I use animation or transitions, I attach prefix with auto prefix site.(because computer is better than me and I'm lazy) But, I dont know why should I write prefix?(JQuery animate method doesnt need prefix) Is it for browser compatibility or kind of test for next css version? It consumes so many lines... If I have 8lines of mini anim, It becomes 16~48lines after prefix. How can I use 50lines for 1anim I can't bare it! Is there a shorthand for prefix? https://code.sololearn.com/WjWKBbJ74OxK/?ref=app

26th May 2017, 12:51 AM
김정제(Legacy)
김정제(Legacy) - avatar
4 Antworten
+ 9
@ Calvin Thx!! But unfortunately I code in only mobile. I cant use npm. T^T
26th May 2017, 1:10 AM
김정제(Legacy)
김정제(Legacy) - avatar
+ 9
@Calvin Thank you for helping me
26th May 2017, 7:20 AM
김정제(Legacy)
김정제(Legacy) - avatar
+ 3
Other option is online autoprefixer http://pleeease.io/play/
26th May 2017, 3:24 AM
Calviղ
Calviղ - avatar
+ 2
You could use automation tool like gulp to autoprefix it eg. https://www.npmjs.com/package/gulp-autoprefixer
26th May 2017, 1:04 AM
Calviղ
Calviղ - avatar