FINALS* WEB PROG: Ex 10: Animation

 




<!DOCTYPE html>
<html>
<head>
<style> 
div {
  width: 100px;
  height: 50px;
  background-color: red;
  font-weight: bold;
  position: relative;
  animation: mymove 5s infinite;
}

#div1 {animation-timing-function: linear;}
#div2 {animation-timing-function: ease;}
#div3 {animation-timing-function: ease-in;}
#div4 {animation-timing-function: ease-out;}
#div5 {animation-timing-function: ease-in-out;}

@keyframes mymove {
  from {left: 0px;}
  to {left: 300px;}
}
</style>
</head>
<body>

<p><strong>Note:</strong> Send this to your family and love ones.</p>

<div id="div1">I</div>
<div id="div2">LOVE</div>
<div id="div3">YOU</div>
<div id="div4">SO</div>
<div id="div5">MUCH</div>

<p><strong>Show your love this pandemic and send it to your family, friends or classmates.</p>

</body>
</html>


Comments

Popular posts from this blog

FINAL* INTERACTIVE EX 11: Chat Box

WEB PROGRAMMING Ex 5: Header & body