Created
January 22, 2021 17:53
-
-
Save Alkimisti/c406f22d740e5114ada9784335f36f7c 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 shembulli { | |
0% { | |
background-color: lightyellow; | |
left: 0; | |
top: 0; | |
} | |
25% { | |
background-color: yellow; | |
left: 300px; | |
top: 0; | |
} | |
50% { | |
background-color: orange; | |
left: 300px; | |
top: 300px; | |
} | |
75% { | |
background-color: darkorange; | |
left: 0; | |
top: 300px; | |
} | |
100% { | |
background-color: lightyellow; | |
left: 0; | |
top: 0; | |
} | |
} | |
#teksti { | |
width: 300px; | |
height: 100px; | |
background-color: lightyellow; | |
padding: 2em; | |
position: relative; | |
animation-name: shembulli; | |
animation-duration: 4s; | |
animation-direction: reverse; | |
/*animation-direction: normal;*/ | |
/*animation-direction: alternate;*/ | |
/*animation-direction: alternate-reverse;*/ | |
} | |
</style> | |
</head> | |
<body> | |
<div id="teksti"><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore | |
et dolore magna aliqua.</p></div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment