enhance dom creation and animation primitive