animation html element using raf or css translate3d