Some people don’t want animation to interfere with their web page experience. What do I do if I want to let a user turn off the animation?
Select one or more:
a. Not possible to turn off the animation by the user
b. wire up a click button to this line of code:
$.fx.off = true;
c. Use the jquery method:stop()
d. Use the jquery method:stop.animation()
Answers
Answer:I have an object that has an animation when the page is loaded:
.logo-mark {
-webkit-animation: spin 2s 1 cubic-bezier(0.000, 0.000, 0.230, 1.000);
-moz-animation: spin 2s 1 cubic-bezier(0.000, 0.000, 0.230, 1.000);
-ms-animation: spin 2s 1 cubic-bezier(0.000, 0.000, 0.230, 1.000);
animation: spin 2s 1 cubic-bezier(0.000, 0.000, 0.230, 1.000);
}
At a certain time, I want JavaScript to turn on a specific animation that occurs endlessly, until JavaScript stops said animation. So I simply made another class named .logo-loading, and at certain times, jQuery does an addClass and a removeClass.
.logo-loading {
-webkit-animation: spin 4s infinite linear;
-moz-animation: spin 4s infinite linear;
-ms-animation: spin 4s infinite linear;
animation: spin 4s infinite linear;
}
However, when JavaScript removes the class, the object just keeps rotating no matter what. Is there anything I can do here?
Explanation:
Answer:
b and c
Explanation: