CSS Vendor Prefixes
CSS Vendor Prefixes
CSS vendor prefixes/CSS browser prefixes are a way for browsers to add support for new CSS features. Browser prefixes are used to add new features that may not be part of the final and formal CSS specification. The prefix is added to the property to make it work in unsupported browsers. So, we have to write additional code for the same property.
List of prefixes with supported browsers are:-
- Mozilla: -moz-
- Chrome: -webkit-
- Opera: -o-
- Internet Explorer: -ms-
Syntax:-
Its syntax is:-
< style >
element{
-webkit-transition: all 1s ease;
-moz-transition: all 1s ease;
-ms-transition: all 1s ease;
-o-transition: all 1s ease;
transition: all 1s ease;
}
< /style >