I. problem
We want a function to move an element
to its right by distance
in specified time
- API:
function moveToRight(ele, dis, time) {}
II. Implementation
- must not be
position: static
: usingele.style.left
+ele.offsetLeft
- no restrict on
position
: using `
1 |
|