Last two days, I was creating a web page which uses Javascript + CSS to simulate a transition to do moving slides one by one.
I'm using a <div> tag that contains the slides locating at different positions in there, and each slide has a button to move to next slide. After a whole development done, I'd just discovered that CSS can only support integer (no floating points) to position x-axis & y-axis of object that causes me that cannot move slide from a top-left corner to another slide at a bottom-right corner if distance of x-axises and distance of y-axises are not in a same proportion.
As the result, the movement is not a straight line and that become a L-like movement. Please beware of that la...
No comments:
Post a Comment