I want to implement
-moz-transition: text-shadow 0.25s ease-in-out,font-size 0.25s ease-in-out;
property through JavaScript. What is the syntax for that?
In raw JavaScript it's:
document.getElementById("yourElem").style.MozTransition = "text-shadow 0.25s ease-in-out,font-size 0.25s ease-in-out";
Note: A preceding hyphen causes an uppercase letter in JavaScript: -moz
=> Moz
Use element.style.MozTransition = "text-shadow 0.25s ease-in-out,font-size 0.25s ease-in-out"
.
An example: http://jsfiddle.net/m9Hpc/3/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With