612wharfavenue Posted February 10, 2011 Share Posted February 10, 2011 so to change css properties i usually just godocument.getelementbyid("stuff").style.opacity="0";but doingdocument.getelementbyid("stuff").style.-moz-transition="opacity 2s ease 0s"ordocument.getelementbyid("stuff").style.mozTransition="opacity 2s ease 0s"doesnt work. Link to comment Share on other sites More sharing options...
ShadowMage Posted February 10, 2011 Share Posted February 10, 2011 Since that's a CSS3 property, it may or may not exist. Are you using FF4? FF3 does not support transitions.OTOH, you can use firebug to inspect an element to see what it has available in its style property.EDIT: I don't have FF4, but looking at firebug I can see that the -moz properties are written with an uppercase 'M' like MozTransform. Maybe try MozTransition? Link to comment Share on other sites More sharing options...
612wharfavenue Posted February 10, 2011 Author Share Posted February 10, 2011 MozTransition worked. thx. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.