add animation transition

with fallback to $.animate if transition is not supported.