Skip to content

Commit

Permalink
Added my animation (#2318)
Browse files Browse the repository at this point in the history
* Added my animation

* Add files via upload

* Update include.js

---------

Co-authored-by: Sophia Brandt <16630701+sophiabrandt@users.noreply.github.com>
  • Loading branch information
majidshakeelshawl and sophiabrandt authored Oct 26, 2023
1 parent 78d8863 commit b0e8f18
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 8 deletions.
Binary file added Art/majidshakeelshawl/animate.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions Art/majidshakeelshawl/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Animation</title>
<link rel="stylesheet" href="./styles.css">
</head>

<body>
<div class="container">
<div class="circle-outer">
FETCHING DATA
</div>
</div>
</body>

</html>
27 changes: 27 additions & 0 deletions Art/majidshakeelshawl/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
.container {
height: 100vh;
width: 100vw;
display: flex;
justify-content: center;
align-items: center;
}

.circle-outer {
height: 30vh;
width: 30vh;
border-color: green;
background-color: orange;
position: relative;
animation: myRotateAnimation 5s infinite;
border-radius: 30rem;
}

@keyframes myRotateAnimation {
from {
transform: rotate(120deg);
}

to {
transform: rotate(360deg);
}
}
23 changes: 15 additions & 8 deletions include.js
Original file line number Diff line number Diff line change
Expand Up @@ -2277,6 +2277,13 @@ let cards = [
author: 'Parth Dwivedi',
githubLink: 'https://github.com/Parth4git'
},
{
artName: 'API Request Animation',
pageLink: './Art/majidshakeelshawl/index.html',
imageLink: './Art/majidshakeelshawl/animate.gif',
author: 'Majid Shawl',
githubLink: 'https://github.com/majidshakeelshawl'
},
{
artName: 'Jumping ball Animation',
pageLink: './Art/CodeDrinks270/index.html',
Expand Down Expand Up @@ -2382,14 +2389,14 @@ let contents = [];
Shuffle(cards).forEach((c) => {
contents.push([
`<li class="card">` +
`<a href='${c.pageLink}'>` +
`<img class="art-image" src='${c.imageLink}' alt='${c.artName}' />` +
`</a>` +
`<div class="flex-content">` +
`<a href='${c.pageLink}'><h3 class="art-title">${c.artName}</h3></a>` +
`<p class='author'><a href="${c.githubLink}" target="_blank"><i class="fab fa-github"></i> ${c.author}</a> </p>` +
`</div>` +
`</li>`
`<a href='${c.pageLink}'>` +
`<img class="art-image" src='${c.imageLink}' alt='${c.artName}' />` +
`</a>` +
`<div class="flex-content">` +
`<a href='${c.pageLink}'><h3 class="art-title">${c.artName}</h3></a>` +
`<p class='author'><a href="${c.githubLink}" target="_blank"><i class="fab fa-github"></i> ${c.author}</a> </p>` +
`</div>` +
`</li>`
]);
});

Expand Down

0 comments on commit b0e8f18

Please sign in to comment.