Skip to content

Instantly share code, notes, and snippets.

@Alkimisti

Alkimisti/anim007.html

Last active Jan 22, 2021
Embed
What would you like to do?
<!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