In: Computer Science
Use external CSS and Javascript files
Use the HTML5 elements to layout the page.
Have a bulleted list and 3 paragraphs this can be loren ipsum. Have the information text
fade in when the page is done loading. Stagger the animations so that the text that is higher up on the page fades in before.
Add three more animations in addition to the ones above including an interval timer based animation, an event based animation click or hover, and
an use of the .animate method.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Portfolio</title>
<link rel="stylesheet" href="index.css">
</head>
<body>
<div>
<h2>Technologies</h2>
<ul>
<li>HTML</li>
<li>CSS</li>
<li>JavaScript</li>
</ul>
<p>Lorem ipsum dolor sit amet, consectetur
adipisicing elit. Vel nobis maxime
repellendus aspernatur commodi ipsam
reprehenderit atque deserunt quae error,
quo veritatis perferendis quia adipisci
voluptate ratione repudiandae enim sit.
</p>
<p>Lorem ipsum dolor sit amet, consectetur
adipisicing elit. Vel nobis maxime
repellendus aspernatur commodi ipsam
reprehenderit atque deserunt quae error,
quo veritatis perferendis quia adipisci
voluptate ratione repudiandae enim sit.
</p>
<p>Lorem ipsum dolor sit amet, consectetur
adipisicing elit. Vel nobis maxime
repellendus aspernatur commodi ipsam
reprehenderit atque deserunt quae error,
quo veritatis perferendis quia adipisci
voluptate ratione repudiandae enim sit.
</p>
</div>
</body>
</html>
CSS
/* fade in style */
body {
animation: fadeInAnimation ease 3s ;
animation-iteration-count: 1;
animation-fill-mode: forwards;
}
@keyframes fadeInAnimation {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
/* interval timer based animation */
h2{
position:relative;
animation:mymove 5s infinite;
animation-timing-function:linear;
}
@keyframes mymove{
from {left:0px;}
to {left:200px;}
}
/* even based animation on hover */
li:hover{
color:green;
font-weight:bold;
font-size:18px;
}