Penn Week 7 – Animations & Small Group Meetings

Recently Seen Online


Look At Hover Activity

Link →

CSS Animation Workshop

CSS animations can liven up a page and call attention to relevant interactions. CSS animations are made of 2 components: Keyframes and Animation Properties.

Key Frames

If you’ve ever used After Effects or another animation program, you’ll remember that key frames show different stages of the animation. A simple animation might have a start and stopping point (2 keyframes), a more complex one might have several different stages.

Let’s create a document to work together on. You can use the below to help get you started.

index.html
<!DOCTYPE html>
<html>
<head>
  <title>Animation Activity</title>
  <link rel="stylesheet" type="text/css" href="assets/css/main.css">
</head>
<body>
  <div class="container">
    <div class="item">
      Hello there!
    </div>
  </div>
</body>
</html>

and create a main.css file
body {
  background-color: pink;
  font-family: arial;
  color: red;
  font-size: 100px;
}

.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
}