CSS fix
Added transition to hide dom generation