Skip to content

Instantly share code, notes, and snippets.

@Alkimisti
Last active January 22, 2021 16:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Alkimisti/a1e72b609dddad7d5bc0f1db72312d27 to your computer and use it in GitHub Desktop.
Save Alkimisti/a1e72b609dddad7d5bc0f1db72312d27 to your computer and use it in GitHub Desktop.
<!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-delay: 2s;
}
</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