To apply an ease-in-out timing function to a transition, you'd set transition-timing-function to ________.

  • ease-in
  • ease-in-out
  • ease-out
  • linear
In CSS transitions, the transition-timing-function property controls the timing function for the transition. The ease-in-out option creates a smooth transition that starts slowly, accelerates in the middle, and slows down at the end. This is a common choice for animations that feel natural and pleasing to the eye.

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 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.

Which SASS/SCSS feature allows you to pass values when including a mixin?

  • @include
  • @mixin
  • @pass
  • @values
To pass values when including a mixin in SASS/SCSS, you use the @include directive followed by the mixin name. The correct syntax is @include myMixin();. This allows you to apply the styles defined in the mixin and pass any necessary values as arguments inside the parentheses.

The default value of the flex-direction property in Flexbox is ________.

  • Column
  • Column-reverse
  • Row
  • Row-reverse
The default value of the flex-direction property in Flexbox is row. This means that flex items are laid out in a row, horizontally. If you want them to stack vertically, you need to set flex-direction to column.

You have a CSS variable named --gap, and you want to double its value and use it as a margin. How would you achieve this using CSS functions?

  • margin: calc(--gap * 2);
  • margin: calc(var(--gap) * 2);
  • margin: var(--gap * 2);
  • margin: var(--gap * 2);
To double the value of a CSS variable named --gap and use it as a margin, you should use the calc() function within the margin property. The correct option is margin: calc(var(--gap) * 2);, which properly references and doubles the variable value.

When an animation is paused using the animation-play-state property, its current state is determined by the ________ property.

  • animation-duration
  • animation-fill-mode
  • animation-iteration-count
  • animation-timing-function
The "animation-play-state" property in CSS is used to pause or resume an animation. When an animation is paused, its current state is determined by the "animation-fill-mode" property, which specifies whether the animation should retain its starting or ending keyframes when paused.