;
}
div {
box-shadow: 1px 1px 7px -1px #ccc;
}
```
I have a subtle box shadow.
---
# Box Shadows
Good For:
- Creating depth
- Highlighting focused elements
Read More:
- [MDN: Reference](https://developer.mozilla.org/en-US/docs/Web/CSS/box-shadow)
- [Codrops: Reference](https://tympanus.net/codrops/css_reference/box-shadow/)
- [Alligator.io: Box Shadow Examples](https://alligator.io/css/box-shadow-examples/)
---
name: gradients
# Gradients
- Technically a data type, like color or length
- CSS generated image
- Linear, radial, and conic functions
[MDN: Using CSS Gradients](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Images/Using_CSS_gradients)
---
# Linear Gradient Example
```css
div {
background: linear-gradient(#88c0d0, #5e81ac);
}
```
[MDN: Linear Gradient Reference](https://developer.mozilla.org/en-US/docs/Web/CSS/linear-gradient)
---
# Radial Gradient Example
```css
div {
background: radial-gradient(#88c0d0, #5e81ac);
}
```
[MDN: Radial Gradient Reference](https://developer.mozilla.org/en-US/docs/Web/CSS/radial-gradient)
---
# Conic Gradient Example
```css
div {
background: conic-gradient(#88c0d0, #5e81ac);
}
```
[MDN: Conic Gradient Reference](https://developer.mozilla.org/en-US/docs/Web/CSS/conic-gradient)
---
# Gradients
Read More:
- [CSS Tricks: Gradients](https://css-tricks.com/css3-gradients/)
- [Patterns made with CSS3 Gradients](https://leaverou.github.io/css3patterns/)
- [Codrops: Gradient Typography Animation](https://tympanus.net/codrops/2018/01/24/gradient-topography-animation/)
---
name: image-effects
# Image Effects
CSS Properties:
- [filter](https://developer.mozilla.org/en-US/docs/Web/CSS/filter): apply graphical effect
- [blend-mode](https://developer.mozilla.org/en-US/docs/Web/CSS/blend-mode): blend two overlapping elements
- [mask](https://developer.mozilla.org/en-US/docs/Web/CSS/mask): hide parts of an image by changing pixels
- [clip-path](https://developer.mozilla.org/en-US/docs/Web/CSS/clip-path): hide parts of an image by cutting it
---
# Image Effects
Read More:
- [Codrops: Filter Reference](https://tympanus.net/codrops/css_reference/filter/)
- [CSS Tricks: Basics of Blend Modes](https://css-tricks.com/basics-css-blend-modes/)
- [CSS Tricks: Clipping and Masking](https://css-tricks.com/clipping-masking-css/)
- [Mozilla Hacks: Shapes in Clipping and Masking](https://hacks.mozilla.org/2017/06/css-shapes-clipping-and-masking/)
---
name: transforms
# Transforms
A single property with many functions:
- Move
- Resize
- Skew
- Rotate
[MDN: Transform Functions](https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function)
---
# Transform
```css
div {
transform: rotate(-30deg) translate(-90px, 140px);
}
```
I am rotated and translated.
---
# Transforms
Read More:
- [MDN: Using Transforms](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Transforms/Using_CSS_transforms)
- [ShayHowe: Learn Transforms](https://learn.shayhowe.com/advanced-html-css/css-transforms/)
- [Codrops: Animated Border Menus](https://tympanus.net/codrops/2013/09/30/animated-border-menus/)
---
name: transitions
# Transitions
- Animate from one style to another
- Property + Duration + Timing Function (+ Delay)
- Only properties with halfway point
[Visualize Cubic Bezier Curves](https://cubic-bezier.com/)
---
# Transitions
```css
a {
background: #5e81ac;
color: #88c0d0;
transition: background 0.3s, color 0.3s;
}
a:hover {
background: #88c0d0;
color: #5e81ac;
}
```
Hover to see transition!
---
# Transitions
Read More:
- [MDN: Reference](https://developer.mozilla.org/en-US/docs/Web/CSS/transitio://developer.mozilla.org/en-US/docs/Web/CSS/transition)
- [Codrops: Reference](https://tympanus.net/codrops/css_reference/transition/)
- [CSS Tricks: Timing Function](https://css-tricks.com/almanac/properties/t/transition-timing-function/)
- [Codrops: Timing Function](https://tympanus.net/codrops/css_reference/timing-function_value/)
---
name: animations
# Animations
- [MDN: Reference](https://developer.mozilla.org/en-US/docs/Web/CSS/animation)
- [MDN: @keyframes](https://developer.mozilla.org/en-US/docs/Web/CSS/@keyframes)
- [CSS Tricks: Using Multi-Step Animations](https://css-tricks.com/using-multi-step-animations-transitions/)
- [ShayHowe: Tansitions & Animations](https://learn.shayhowe.com/advanced-html-css/transitions-animations/)
---
name: custom-props
# Custom Properties
- [MDN: Reference](https://developer.mozilla.org/en-US/docs/Web/CSS/--*)