Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions hello.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
* {
margin: 0;
}
.hello_world {
width: 100%;
height: 100vw;
background-color: yellow;
animation-name: example;
animation-duration: 10s;
animation-iteration-count: infinite;
}
.hello_world h1 {
animation: animatename 1s linear infinite;
/* animation shorthand */
animation: animation-name animation-duration animation-direction
animation-iteration-count;
animation-duration: 10s;
}

@keyframes example {
from {
background-color: red;
}
to {
background-color: yellow;
}
}
@keyframes animatename {
0% {
transform: translateY(100vw);
}
100% {
transform: translateY(0vw);
}
}

/* The element to apply the animation to */
8 changes: 7 additions & 1 deletion hello.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
<html>

<head>
<meta charset="UTF-8">
<title>Hacktoberfest</title>
<link rel="stylesheet" href="hello.css" />
</head>

<body>
<h1>Hello World</h1>
<div class="hello_world">
<h1>Hello World</h1>
</div>
</body>

</html>