Professional Documents
Culture Documents
I. LEARNING OBJECTIVES
Performance Objective:
Upon completion of the lesson, students will understand the web basic animation using cascading style sheets
and learn how to create a dynamic webpage.
Specific Objectives:
Students will understand how style sheets can enhance a web page.
Students will understand the benefits of using style sheets.
Students will be able to add transition and creativity to a web page
C. Materials:
CRISTINA NAZARENO 1
BASIC WEB DESIGNING 05/23/2019
B. Developmental Activities
Presentation
Define the following terms
animation
name
duration
timing-function (let the students think and absorb the
terms explained)
delay
iteration-count
direction
fill-mode
Discussion
CSS animations are like mini movies where you are the
director giving out instructions (CSS rules) to your actors
(HTML elements) for different scenes (keyframes).
Illustrate the different browser that supports web
animation according to their version.
Present a sample animated web page using a projector.
To animate a ball, you could write a bouncing animation:
.ball {
width: 100px;
height: 100px;
border-radius: 50%;
background-color: #FF5722;
(let the students watch and learn the
animation: bounce 0.5s; simple coding through the sample activity)
animation-direction: alternate;
animation-timing-function: cubic-bezier(.5,0.05,1,.5);
animation-iteration-count: infinite;
}
@keyframes bounce {
from { transform: translate3d(0, 0, 0); }
to { transform: translate3d(0, 200px, 0); }
}
/* Prefix Support */
ball {
-webkit-animation-name: bounce;
-webkit-animation-duration: 0.5s;
-webkit-animation-direction: alternate;
-webkit-animation-timing-function: cubic-bezier(.5,0.05,1,.5);
CRISTINA NAZARENO 2
BASIC WEB DESIGNING 05/23/2019
-webkit-animation-iteration-count: infinite;
}
@-webkit-keyframes bounce {
from { -webkit-transform: translate3d(0, 0, 0); transform:
translate3d(0, 0, 0); }
to { -webkit-transform: translate3d(0, 200px, 0); transform:
translate3d(0, 200px, 0); }
}
Individual Activity
Present a sample output of a webpage with animation (Students do the activity)
Ask the student to create simple animation code to
achieve a result similar to the presented output.
IV. EVALUATION
Direction: Encircle the letter of the correct answer in each of the given question.
1. Which one is the correct Property for giving time duration of the animation?
a) animation-time: 4s; c) duration: 4s;
b) animation-duration: 4s; d) none of the above
2. Which one is the correct syntax to support command in Chrome, Opera and Safari CSS3?
a) keyframes example c) webkit-keyframes example
b) @-webkit-keyframes example d) none of the above
3. What is the Standard syntax for animation in CSS3?
a) keyframes example c) @keyframes
b) @keyframes example d) none of the above
4. What Property I should write if I want to run my animation countless time?
a) animation-iteration:infinite; c) animation:infinite;
b) animation-iteration-count:infinite; d) none of the above
5. Which property can we use to bind the animation with an element?
a) animation-name c) animation-delay
b) animation d) none of the above
V. ASSIGNMENT
Create a sample web - based photo gallery that uses CSS animation.
Prepared by:
CRISTINA NAZARENO 3
BASIC WEB DESIGNING 05/23/2019
CRISTINA NAZARENO 4