How do keyframe animations differ from CSS transitions in SVG animations?
A). A) Keyframe animations provide smoother transitions than CSS transitions
B). B) Keyframe animations allow for more precise control and complex animations
C). C) Keyframe animations are slower and less efficient than CSS transitions
D). D) Keyframe animations are only suitable for simple animations
What effect does specifying infinite for the animation iteration count have in keyframe animations for SVG elements?
A). A) It plays the animation backward
B). B) It pauses the animation after one iteration
C). C) It repeats the animation indefinitely
D). D) It speeds up the animation
What is the purpose of CSS transitions in animating SVG elements?
A). A) To apply complex animations with precise control
B). B) To create smooth and gradual changes in SVG properties
C). C) To define keyframes for advanced animations
D). D) To set initial styles for SVG elements
Which of the following is an example of a CSS transition for SVG elements?
A). A) .circle:hover { transform: scale(1.5); }
B). B) @keyframes rotate { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
C). C) .square { animation: movePath 2s linear infinite; }
D). D) .path { stroke-width: 5; transition: stroke-width 0.3s ease; }
What is the purpose of the linear timing function in keyframe animations for SVG elements?
A). A) It accelerates the animation progressively
B). B) It applies a constant speed throughout the animation
C). C) It creates a bouncing effect at the animation's end
D). D) It slows down the animation towards the end
Which CSS property is used to define keyframe animations for SVG elements?
A). A) transition
B). B) animation
C). C) transform
D). D) keyframe
How do CSS transitions impact the performance of SVG animations?
A). A) They improve performance by reducing animation complexity
B). B) They have no impact on performance
C). C) They can cause performance issues if used excessively or on complex animations
D). D) They make animations slower due to additional calculations
What is the purpose of the ease-out timing function in CSS animations for SVG elements?
A). A) It applies a constant speed throughout the animation
B). B) It accelerates the animation progressively
C). C) It creates a bouncing effect at the animation's end
D). D) It slows down the animation towards the end
What is the purpose of keyframe animations in SVG graphics?
A). A) To create smooth transitions between SVG states
B). B) To apply advanced transformations to SVG elements
C). C) To define complex animations with precise control
D). D) To set initial styles for SVG elements
How do you pause and resume a CSS animation for an SVG element using JavaScript?
A). A) By setting the animation-play-state property to paused or running
B). B) By changing the display property to none or block
C). C) By adjusting the z-index property to hide or show the element
D). D) By adding a class with the visibility property set to hidden or visible