I am revisting the user interface of my app at the moment. One thing I would love to use are short animations when the mouse enters or leaves a button.
Something like this: http://iamchenghan.host22.com/css3_color_animation_demo.html
The length of the animations in the demo a too long to look good but it shows the principle.
The DrawableButton for example has on, off and down states. Instead of just switching between these states it would be great if one could set a transition length and the button would animate between the states using a ComponentAnimator. I think it would work if the drawable for the new state would be placed in front of the old one with zero opacity, then the ComponentAnimator could be used to animate the opacity of the old Drawable to 0 while the opacity of the new Drawable is animated to 1.
Does it sound like a reasonable approach? Maybe others have already played with hover animations and could share some insights?