Trying to create a smooth transition effect for input placeholders on focus, but encountering issues with Firefox.
<input type="text" placeholder="some cool text"/>
input:focus::-moz-placeholder {
opacity: 0.1;
}
input::-moz-placeholder {
opacity: 1;
transition: opacity 1s;
}
input::-moz-placeholder {
opacity: 1;
}
input:focus::-webkit-input-placeholder {
opacity: 0.1;
}
This functionality works smoothly in Chrome, however, there are compatibility issues in Firefox and not working correctly in IE as well. The placeholder opacity changes correctly on focus, but the 1-second transition effect does not seem to be applied.
EDIT: It seems to be a bug specific to the latest version of Firefox (20.0.1)