Which of the following argument is not accepted by radial-gradient() function?

Shape
Time
Color stops
Position

The correct answer is: B. Time

The radial-gradient() function is a CSS function that creates a radial gradient. A radial gradient is a type of gradient that radiates from a center point. The function takes the following arguments:

  • shape (required): The shape of the gradient. The possible values are “circle” and “ellipse”.
  • cx (required): The x-coordinate of the center of the gradient.
  • cy (required): The y-coordinate of the center of the gradient.
  • r (required): The radius of the gradient.
  • fx (optional): The x-coordinate of the focal point of the gradient.
  • fy (optional): The y-coordinate of the focal point of the gradient.
  • spreadMethod (optional): The method used to spread the colors of the gradient. The possible values are “pad”, “reflect”, and “repeat”.
  • colorStops (required): An array of color stops that define the colors of the gradient. Each color stop is a pair of values, the first of which is the position of the color stop and the second of which is the color.

The time argument is not accepted by the radial-gradient() function. This is because the radial-gradient() function is a static function, meaning that it does not change over time.

Exit mobile version