I tried doing it that way but the problem is that the statusbar and Rocketbar need to change at exactly the same time. It takes a while for the events to propogate and when I tried to do it that way there was a noticeable difference and the statusbar and Rocketbar were out of sync. Using a CSS class higher up the tree allows us to closely synchronise the two animations.