Skip to content
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.

Commit

Permalink
adding my artsyness to the project
Browse files Browse the repository at this point in the history
  • Loading branch information
Bravo773 committed Aug 31, 2023
1 parent e73d652 commit bd51562
Show file tree
Hide file tree
Showing 5 changed files with 88 additions and 23 deletions.
Binary file removed Art/Bravo/flame.gif
Binary file not shown.
13 changes: 11 additions & 2 deletions Art/Bravo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,19 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Fire Animation</title>
<title>Rotating 3D Cube</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div class="fire"></div>
<div class="container">
<div class="cube">
<div class="face top"></div>
<div class="face bottom"></div>
<div class="face left"></div>
<div class="face right"></div>
<div class="face front"></div>
<div class="face back"></div>
</div>
</div>
</body>
</html>
Binary file added Art/Bravo/rotating-cube.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
96 changes: 76 additions & 20 deletions Art/Bravo/style.css
Original file line number Diff line number Diff line change
@@ -1,22 +1,78 @@
@keyframes flicker {
0%, 100% {
opacity: 1;
transform: scale(1);
}
25% {
opacity: 0.6;
transform: scale(0.95) translateY(-5px);
}
75% {
opacity: 0.8;
transform: scale(1.05) translateY(5px);
}
.container {
width: 200px;
height: 200px;
perspective: 500px;
margin: 100px;
}

.fire {
width: 800px;
height: 500px;
background-image: url('flame.gif'); /* Replace with your fire image URL */
background-size: cover;
animation: flicker 1s infinite alternate;
}
.cube {
position: relative;
width: 200px;
height: 200px;
transform-style: preserve-3d;
}

.face {
width: 200px;
height: 200px;
background: white;
border: 2px solid black;
position: absolute;
opacity: 0.8;
display: flex;
align-items: center;
justify-content: center;
font-family: Arial, sans-serif;
font-size: 2rem;
}

.cube {
position: relative;
width: 200px;
height: 200px;
transform-style: preserve-3d;
transform: rotate3d(1, 1, 0, 45deg);
}

.front {
background-color: red;
transform: translateZ(100px);
}

.back {
background-color: blueviolet;
transform: translateZ(-100px) rotateY(180deg);
}

.left {
background-color: aqua;
transform: translateX(-100px) rotateY(-90deg);
}

.right {
background-color: blue;
transform: translateX(100px) rotateY(90deg);
}

.top {
background-color: purple;
transform: translateY(-100px) rotateX(90deg);
}

.bottom {
background-color: lawngreen;
transform: translateY(100px) rotateX(-90deg);
}

@keyframes turn {
from { transform: rotate3d(0, 0, 0, 0); }
to { transform: rotate3d(1, 1, 0, 360deg); }
}

.cube {
position: relative;
width: 200px;
height: 200px;
transform-style: preserve-3d;
animation: turn 5s linear infinite;
}
2 changes: 1 addition & 1 deletion include.js
Original file line number Diff line number Diff line change
Expand Up @@ -9470,7 +9470,7 @@ let cards = [
{
artName: 'Bravo',
pageLink: './Art/Bravo/index.html',
imageLink: './Art/Bravo/flame.gif',
imageLink: './Art/Bravo/rotating-cube.gif',
author: 'Cristian Bravo',
githubLink: 'https://github.com/Bravo773'
}
Expand Down

0 comments on commit bd51562

Please sign in to comment.