In CSS there are some properties that need a prefix for some browsers, for example:
-webkit-transition: all 4s ease;
-moz-transition: all 4s ease;
-ms-transition: all 4s ease;
-o-transition: all 4s ease;
transition: all 4s ease;
If I want to change these properties of an element by JavaScript, I use:
document.querySelector('#myElment').style.transition = 'all 4s ease';
When changing the style.transition
q property, is it enough to work in all browsers?
Do I need to apply a prefix? What are they?
The properties that need to apply these prefixes are the memes that need to apply the CSS prefixes?
I need to apply this prefix in all browsers (just like in CSS) or just the one in each browser?