Skip to content

Commit

Permalink
The animation is a 3D cube with the letters 'LHV' on each face. (#1798)
Browse files Browse the repository at this point in the history
The cube rotates continuously. Each side has different color.

Co-authored-by: anastasiia <anastasiia.popovych@lhv.ee>
  • Loading branch information
WizOzHeir and anastasiia committed Oct 3, 2023
1 parent 52bc6f9 commit d18ef11
Show file tree
Hide file tree
Showing 4 changed files with 73 additions and 0 deletions.
47 changes: 47 additions & 0 deletions Art/wizozheir/lhv.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
body {
margin: 0;
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
background-color: #282c34;
color: #000;
font-family: 'Dancing Script', serif;
overflow: hidden;
}

.container {
perspective: 1000px;
}

.cube {
width: 200px;
height: 200px;
position: relative;
transform-style: preserve-3d;
animation: rotate 5s infinite linear;
}

.face {
position: absolute;
width: 198px;
height: 198px;
background-color: rgba(255, 255, 255, 0.9);
border: 1px solid #ccc;
box-shadow: 0 0 5px rgba(0,0,0,0.3);
line-height: 200px;
text-align: center;
font-size: 4em;
}

.front { transform: translateZ(100px); background-color: #FFCCCC; }
.back { transform: rotateY(180deg) translateZ(100px); background-color: #CCFFCC; }
.right { transform: rotateY(90deg) translateZ(100px); background-color: #CCCCFF; }
.left { transform: rotateY(-90deg) translateZ(100px); background-color: #FFFFCC; }
.top { transform: rotateX(90deg) translateZ(100px); background-color: #CCFFFF; }
.bottom { transform: rotateX(-90deg) translateZ(100px); background-color: #FFCCFF; }

@keyframes rotate {
from { transform: rotate3d(1, 1, 0, 0deg); }
to { transform: rotate3d(1, 1, 0, 360deg); }
}
Binary file added Art/wizozheir/lhv.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions Art/wizozheir/lhv.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>LHV Cube</title>
<link rel="stylesheet" href="lhv.css">
</head>
<body>
<div class="container">
<div class="cube">
<div class="face front">LHV</div>
<div class="face back">LHV</div>
<div class="face right">LHV</div>
<div class="face left">LHV</div>
<div class="face top">LHV</div>
<div class="face bottom">LHV</div>
</div>
</div>
</body>
</html>
6 changes: 6 additions & 0 deletions include.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,12 @@ let cards = [
githubLink: 'https://github.com/MrARawal'
},
{
artName: 'LHV',
pageLink: './Art/wizozheir/lhv.html',
imageLink: './Art/wizozheir/lhv.gif',
author: 'wizozheir',
githubLink: 'https://github.com/wizozheir'
},
artName: 'Falling stars',
pageLink: './Art/ChipoJ/index.html',
imageLink: './Art/ChipoJ/star_fall.gif',
Expand Down

0 comments on commit d18ef11

Please sign in to comment.