Moved transition effect to HTML class