My concern is that what you show being done with it isn't anything I'd be having JavaScript even handle anymore, apart from perhaps doing class swaps to trigger behaviors -- and we really don't even need that anymore.
CSS3 can do all that without JS' help.