Which CSS property allows you to control the speed curve of an animation?

  • animation-ease
  • animation-speed-curve
  • animation-timing-function
  • animation-transition
The animation-timing-function property is used to control the speed curve of an animation. It allows you to specify how the animation progresses through time, giving you control over the easing and acceleration of the animation.

The CSS unit vh represents a percentage of the ________.

  • Font Size
  • Height
  • Viewport
  • Width
The CSS unit 'vh' represents a percentage of the viewport's height. This means that 1vh is equal to 1% of the height of the viewport in which the web page is displayed. It's a relative unit often used for responsive design.

The @font-face rule allows web designers to use fonts that are not ________ on the user's machine.

  • available
  • compatible
  • installed
  • recognized
The @font-face rule in CSS allows web designers to use fonts that are not installed on the user's machine. This is useful for ensuring consistent typography across different devices.

With PostCSS, developers can write plugins to create custom ________ for their projects.

  • Compilers
  • Frameworks
  • Templates
  • Transformations
PostCSS is a versatile tool that allows developers to create custom transformations or plugins for their projects. These transformations can be used to modify or extend the functionality of CSS, making it a powerful and flexible tool for developers.

Which CSS property allows you to set a graphical element to be used as a mask against an element?

  • element-mask
  • mask-clip
  • mask-image
  • mask-layer
The CSS property that allows you to set a graphical element to be used as a mask against another element is mask-image. This property lets you specify an image or SVG as a mask, which defines the transparency of an element based on the mask's alpha channel. It's often used for creating complex visual effects and overlays.

In a React application, you are tasked with styling a button that changes its background color based on a prop passed to it. Which CSS-in-JS library would be ideal for this?

  • Styled-components
  • Bootstrap
  • Tailwind CSS
  • SCSS
Styled-components is a popular CSS-in-JS library for React. It allows you to define component styles directly in your JavaScript code and can easily style components based on props, making it ideal for dynamic styling based on prop values.

The cubic-bezier function for animation-timing-function takes in ______ arguments to define the curve.

  • 1
  • 2
  • 3
  • 4
The cubic-bezier function in CSS, used for defining custom timing functions for animations, takes in three arguments. These three arguments represent the control points of the cubic Bezier curve, allowing precise control over the animation's progress.

The default value of animation-timing-function is ______.

  • ease
  • infinite
  • linear
  • none
The default value for animation-timing-function is ease. This timing function provides a smooth and gradual acceleration at the beginning and a deceleration at the end of the animation, creating a more natural and visually appealing effect.

You are designing a webpage for a vintage-themed site and want to use a cursive style for headings. Which CSS property-value combination will you use?

  • font-family: cursive;
  • font-style: cursive;
  • text-decoration: cursive;
  • text-transform: uppercase;
To achieve a cursive style for text in CSS, you should use the font-family property with the value set to 'cursive'. This will apply a cursive font family to the selected text, which is suitable for vintage-themed designs.

The "line-height" property can be set using units like px, em, and ________.

  • %
  • mm
  • rem
  • vh
The "line-height" property in CSS can be set using various units. While "px" and "em" are commonly used, it can also be set using a percentage ("%"). This percentage value is relative to the font size of the element, making it a versatile option for controlling line height.