Skip to content

Commit

Permalink
Added RGB animation (#1788)
Browse files Browse the repository at this point in the history
Co-authored-by: Sophia Brandt <16630701+sophiabrandt@users.noreply.github.com>
  • Loading branch information
T-Crypt and sophiabrandt committed Oct 3, 2023
1 parent 20eb8df commit 3215984
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 0 deletions.
37 changes: 37 additions & 0 deletions Art/TCrypt/animated.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
background-color: #f0f0f0;
}

.heart {
width: 100px;
height: 100px;
background-color: red;
position: relative;
animation: grow 3s ease-in-out forwards;
transform-origin: center bottom;
transform: rotate(-45deg);
}

@keyframes grow {
0% {
width: 0;
height: 0;
background-color: red;
}
50% {
width: 100px;
height: 100px;
background-color: green;
}
100% {
width: 200px;
height: 200px;
background-color: blue;
}
}

12 changes: 12 additions & 0 deletions Art/TCrypt/animated.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Growing RGB Square</title>
<link rel="stylesheet" href="./animated.css">
</head>
<body>
<div class="heart"></div>
</body>
</html>
Binary file added Art/TCrypt/rgbsq-animated.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions include.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,13 @@ let cards = [
author: 'Ibaad',
githubLink: 'https://github.com/ibaaddurrani'
},
{
artName: 'RGB Square',
pageLink: './Art/TCrypt/animated.html',
imageLink: './Art/TCrypt/rgbsq-animated.gif',
author: 'T-Crypt',
githubLink: 'https://github.com/T-Crypt'
},
{
artName: 'Loader Animation',
pageLink: './Art/C S Sachindra/loader.html',
Expand Down

0 comments on commit 3215984

Please sign in to comment.