[BUG 7310] Fixed issue with animating 'width' and 'height' by using the CSS properties if available instead of the (deprecated) element attributes.