Applied Visual Design Flashcards

1
Q

What does text-align: justify; do?

A

Causes all lines of text except for the last line to meet the left and right edges of the line box

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Explain how the box-shadow works

A

Applies one or more shadows to an element. Takes the value of
offset-x: How far to push the shadow horizontally from the element.
offset-y: How far to push the shadow vertically from the element.
blur-radius(optional)
spread-radius(optional)
and color in that order.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does position relative do?

A

Tells you how CSS should move it relative to its current position.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What does position absolute do?

A

Locks an element in place relative to its parent container. Removes element from normal form of document so everything else ignores it. It will be locked relative to the closest position: relative. If it does not find one it will keep looking up the chain and default to the body tag.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What does float do?

A

It removes the element from the flow of the webpage and sets it either right or left of the containing parent element.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How does the z-index work?

A

Specify the order of how elements are stacked on one another. Must be a number and the higher the number , it moves up on the stack than those with lower numbers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What’s one way to center a horizontal block element?

A

margin auto

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are complimentary colors? Examples?

A

When two colors are opposite each other on the wheel. When combined, they cancel each other out and create a gray color. Examples are red and cyan, green and magenta, blue and yellow.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are secondary colors?

A

These colors are made when primary(Red, green, blue) mix. Cyan, magenta and yellow. These secondary colors compliment the primary color that was not used in its making. For example magenta is made with red and blue, and is the compliments green.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are tertiary colors?

A

Result of combining a primary color with on its secondary colors. Red(primary) and yellow(secondary) mix to create orange(tertiary). This adds six more colors to a simple color wheel for a total of twelve.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is hsl?

A

A way to define colors. H is for Hue which is the general color. S is for the saturation which is regarding how much gray is in it. A fully saturated 100% has no saturation in it, and l stands for light ranging from 0%(black) to 100%(white) with 50% being the normal color.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are some things that can be done knowing hsl?

A

Mixing white with a pure hue creates a tint of that color, and adding black will make a shade. Alternatively, a tone is produced by adding gray or by both tinting and shading. The saturation percent changes the amount of gray and the lightness percent determines how much white or black is in the color. This is useful when you have a base hue you like, but need different variations of it.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Explain how linear gradient works

A

The first argument specifies the direction from which color transition starts - can be stated as a degree, where 90deg makes a horizontal gradient (from left to right) and 45deg makes a diagonal gradient (from bottom left to top right). The following arguments specify the order of colors used in the gradient. background: linear-gradient(90deg, red, yellow, rgb(204, 204, 255));

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

The ::before and ::after come after their specified element. What do they both need to exist?

A

The content property. If we’re not dealing with stuff like images then we can set it to an empty string such as content: “”.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What does @keyframes do?

A
Specifies what happens in the animation over a duration. If we compare it to a movie, 0% would be the opening scene and 100% would be the closing scene. Here is an example:
#anim {
  animation-name: colorful;
  animation-duration: 3s;
}
@keyframes colorful {
  0% {
    background-color: blue;
  }
  100% {
    background-color: yellow;
  }
}
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Give an example of how to use the :hover with @keyframes to change the color of a button. Use the animation-fill-mode to keep the hover color going and prevent it from turning back

A
button {
    border-radius: 5px;
    color: white;
    background-color: #0F5897;
    padding: 5px 10px 8px 10px;
  }
  button:hover {
    animation-name: background-color;
    animation-duration: 500ms;
    animation-fill-mode: forwards;
  }
  @keyframes background-color {
    100% {
      background-color: #4791d0;
    }
  }
17
Q

What is animation-iteration-count?

A

How many times you’d like to loop an animation.

18
Q

What is the animation-timing-function? What does ease, ease-out, ease-in, and linear do?

A

Controls how quickly an animated element changes over the duration of the animation. There are predefined values available such as ease, which starts slow, speeds up in the middle, and then slows down again in the end. Other options include ease-out, which is quick in the beginning then slows down, ease-in, which is slow in the beginning, then speeds up at the end, or linear, which applies a constant animation speed throughout.