create Transitionable abstract class and make div inherit it.