Skip to content

Commit

Permalink
feat: Initial commit
Browse files Browse the repository at this point in the history
- Added starting point files
  • Loading branch information
shreyas-a-s committed Jul 6, 2024
0 parents commit ebdb68c
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 0 deletions.
1 change: 1 addition & 0 deletions alice.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<title>Sequencing animations</title>
<script type="text/javascript" src="main.js" defer></script>
<link href="style.css"rel="stylesheet">
</head>

<body>

<div id="alice-container">
<img id="alice1" src="alice.svg" role="img" alt="silhouette of crouching long haired character in dress and short boots">
<img id="alice2" src="alice.svg" role="img" alt="silhouette of crouching long haired character in dress and short boots">
<img id="alice3" src="alice.svg" role="img" alt="silhouette of crouching long haired character in dress and short boots">
</div>

</body>

</html>
14 changes: 14 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const aliceTumbling = [
{ transform: 'rotate(0) scale(1)' },
{ transform: 'rotate(360deg) scale(0)' }
];

const aliceTiming = {
duration: 2000,
iterations: 1,
fill: 'forwards'
}

const alice1 = document.querySelector("#alice1");
const alice2 = document.querySelector("#alice2");
const alice3 = document.querySelector("#alice3");
27 changes: 27 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
body {
background: #6c373f;
display: flex;
justify-content: center;
}

#alice-container {
width: 90vh;
display: grid;
place-items: center;
grid-template-areas:
"a1 . ."
". a2 ."
". . a3";
}

#alice1 {
grid-area: a1;
}

#alice2 {
grid-area: a2;
}

#alice3 {
grid-area: a3;
}

0 comments on commit ebdb68c

Please sign in to comment.