Skip to the content.

Class 14: CSS

CSS Transforms

2D and 3D rotations. Includes the code for CSS and HTML

Transitions and Animations

Direct quotes that I found useful:

With CSS3 transitions you have the potential to alter the appearance and behavior of an element whenever a state change occurs, such as when it is hovered over, focused on, active, or targeted.

Animations within CSS3 allow the appearance and behavior of an element to be altered in multiple keyframes. Transitions provide a change from one state to another, while animations can set multiple points of transition upon different keyframes.

an element must have a change in state, and different styles must be identified for each state. The easiest way for determining styles for different states is by using the :hover, :focus, :active, and :target pseudo-classes.

There are four transition related properties in total, including transition-property, transition-duration, transition-timing-function, and transition-delay. Not all of these are required to build a transition, with the first three are the most popular.

More code examples iwth CSS and how it will look in HTML for transitions and also animation

8 SIMPLE CSS3 TRANSITIONS THAT WILL WOW YOUR USERS

  1. Fade in
  2. Change color
  3. Grow and Shrink
  4. Rotate Elements
  5. Square to Circle
  6. 3d Shadow
  7. Swing
  8. Inset border

6 buttons animated

a codepen link showing the some css button styles

CSS3 ANimations: Keyframes

Codepen link showing keyframe animations

404

fancy 404 error CSS styling animation

bouncy bouncy

HTML elements go bounce. I like this one. Will resist urge to place unneccessarily.

Things I want to learn more about

Just want to practice using these. Esp the nth and child things with CSS. Just odd pharsing to wrap mind around.