reading-notes

Reading Notes

View the Project on GitHub simon-panek/reading-notes

Code 201: Class 14 Google Teams, CSS Transforms, Transitions, and Animations


Read: “What Google Learned From Its Quest to Build the Perfect Team

Project Aristotle

Read: CSS Transforms

transform applied in two different forms 2D and 3D

Read: CSS Transitions and Animations

For a transition to occur an element must hav a change in state, easiest way is with a pseudo-class

8 Simple CSS3 transitions that will wow your users

1; Fade in


.fade{opacity:0.5;}
.fade:hover{opacity:1;}

2; Change Color

.color:hover{background: #53a7ea;}

3; Grow and Shrink

.grow:hover{transform: scale(1.3);}

4; Rotate Element

.rotate:hover{transform:rotateZ(-30deg)}

5; Square to Circle

.circle:hover{border-radius:50%;}

6; 3D Shadow


.threed:hover{
  box-shadow:
    1px 1px #53a7ea,
    2px 2px #53a7ea,
    3px 3px #53a7ea,
    transform: translateX(-3px)
}

7; Swing *shakes and element back and forth

8; Inset Border

.border:hover{box-shadow: inset 0 0 0 25px #53a7ea}

6 Buttons Animated

A few different button style ideas

CSS3 Animations: Keyframes

Example @keyframe of a ball bouncing

404

Example of keyframes and transforms to use as an animation for a 404 error

Pure CSS Bounce Animation

Example of a bounce animation


Return to reading-notes Deployed Site

Return to reading-notes Mark Down