M
M
Marina2018-03-07 14:19:05
css
Marina, 2018-03-07 14:19:05

bug transform: translate in FireFox?

The animation only works if you move the cursor continuously.
If you do not pull the mouse - there is no animation.
Example
Is there any solution to the problem other than replacing translate?
transform: scale works fine, the problem is only in translate.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Bogachev, 2018-03-07
@Mo_Ginger

Is there any solution to the problem other than replacing translate?

Don't use empty frames in keyframes, specify everything explicitly:
@keyframes logo {
    0% {
        transform: translateX(-120%); /* Раз */
    },
    10% {
        transform: translateX(-120%);
    }
    15% {
        transform: translateX(0%); /* И два */
    },
    100% {
        transform: translateX(0%);
    }
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question