use css translates for ui elements instead of top/left