Created
January 22, 2021 22:18
-
-
Save Alkimisti/8103d321decffb324c30548dfa68390f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" | |
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Document</title> | |
<style> | |
@keyframes levizja { | |
from { | |
left: 0; | |
} | |
to { | |
left: 300px; | |
} | |
} | |
#container { | |
width: 622px; | |
border-left: 2px solid black; | |
border-right: 2px solid black; | |
} | |
#div1, #div2, #div3, #div4, #div5, #div6 { | |
padding: 10px; | |
width: 300px; | |
height: 20px; | |
margin-bottom: 10px; | |
font-weight: bold; | |
position: relative; | |
animation: levizja 5s; | |
left: 300px; | |
border: 1px solid black; | |
} | |
#div1 { | |
animation-timing-function: linear; | |
background-color: lightyellow; | |
} | |
#div2 { | |
animation-timing-function: ease; | |
background-color: yellow; | |
} | |
#div3 { | |
animation-timing-function: ease-in; | |
background-color: orange; | |
} | |
#div4 { | |
animation-timing-function: ease-out; | |
background-color: darkorange; | |
} | |
#div5 { | |
animation-timing-function: ease-in-out; | |
background-color: red; | |
} | |
#div6 { | |
animation-timing-function: cubic-bezier(0.1, 0.7, 1.0, 0.1); | |
background-color: indianred; | |
} | |
</style> | |
</head> | |
<body> | |
<div id="container"> | |
<div id="div1">animation-timing-function: linear</div> | |
<div id="div2">animation-timing-function: ease</div> | |
<div id="div3">animation-timing-function: ease-in</div> | |
<div id="div4">animation-timing-function: ease-out</div> | |
<div id="div5">animation-timing-function: ease-in-out</div> | |
<div id="div6">animation-timing-function: cubic-bezier</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment