- I am reviewing box model properties, flex containers, and hover selectors
- I am learning how to use the CSS transition and transform properties to automatically animate between two states
- I can set initial and :hover or :active properties for an element in CSS (colors, border, position, etc.)
- I can use the transition property to animate the transition to the hovered state
- I can use the transform property to scale, rotate, or translate an element
- Install Live Server and Go Live to view how the webpage looks with no styling
- Follow directions below
Use box model and flex properties to style the page so it looks like the screenshots below.
- Follow along with my example for the nav
- You complete the gallery
selector {
width: 50%;
height: auto;
padding: 20px;
border: 2px solid red;
margin: 20px;
}container {
display: flex;
flex-direction: row | column;
justify-content: start | end | center | space-around | space-between | space-evenly;
align-items: start | end | center | stretch;
flex-wrap: wrap | nowrap;
}selector {
transition: property duration timing-function;
}
a {
transition: background-color 1s ease;
}selector {
transform: translate(x, y) | scale(%) | rotate(deg);
}


