Is it possible to set CSS transition to use speed instead of duration?
Right now, if I want to have a class that moves element from left to right of another element, speed greatly varies.
If I have short element and I want to move sub element from left to right and duration is set to e.g. 1sec, than it moves really slow.
On the other hand, if I have a very long element with the same class, than sub element flashes through at incredible speed to satisfy time limit of 1sec.
This really hurts my CSS modularity, so I'd like to know if there's a way to make transitions consistent in such cases.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…