-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CubeBackground: Landing page background
Made landing page background Made a separated blocks in aboutus section Fixed anchor for more button
- Loading branch information
Showing
9 changed files
with
270 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
<style> | ||
.cube { | ||
position: absolute; | ||
top: 80vh; | ||
left: 45vw; | ||
width: 10px; | ||
height: 10px; | ||
border: solid 1px var(--primary-color-01); | ||
transform-origin: top left; | ||
transform: scale(0) rotate(0deg) translate(-50%, -50%); | ||
-webkit-animation: cube 12s ease-in forwards infinite; | ||
animation: cube 12s ease-in forwards infinite; | ||
} | ||
|
||
.cube:nth-child(2n) { | ||
border-color: var(--primary-color-01); | ||
} | ||
|
||
.cube:nth-child(2) { | ||
-webkit-animation-delay: 2s; | ||
animation-delay: 2s; | ||
left: 25vw; | ||
top: 40vh; | ||
} | ||
|
||
.cube:nth-child(3) { | ||
-webkit-animation-delay: 4s; | ||
animation-delay: 4s; | ||
left: 75vw; | ||
top: 50vh; | ||
} | ||
|
||
.cube:nth-child(4) { | ||
-webkit-animation-delay: 6s; | ||
animation-delay: 6s; | ||
left: 90vw; | ||
top: 10vh; | ||
} | ||
|
||
.cube:nth-child(5) { | ||
-webkit-animation-delay: 8s; | ||
animation-delay: 8s; | ||
left: 10vw; | ||
top: 85vh; | ||
} | ||
|
||
.cube:nth-child(6) { | ||
-webkit-animation-delay: 10s; | ||
animation-delay: 10s; | ||
left: 50vw; | ||
top: 10vh; | ||
} | ||
|
||
@-webkit-keyframes cube { | ||
from { | ||
transform: scale(0) rotate(0deg) translate(-50%, -50%); | ||
opacity: 0.5; | ||
} | ||
|
||
to { | ||
transform: scale(6) rotate(960deg) translate(-50%, -50%); | ||
opacity: 0; | ||
} | ||
} | ||
|
||
@keyframes cube { | ||
from { | ||
transform: scale(0) rotate(0deg) translate(-50%, -50%); | ||
opacity: 0.5; | ||
} | ||
|
||
to { | ||
transform: scale(6) rotate(960deg) translate(-50%, -50%); | ||
opacity: 0; | ||
} | ||
} | ||
</style> | ||
|
||
<? if (!isset($cubeAmount)) { ?> | ||
<div class="cube"></div> | ||
<div class="cube"></div> | ||
<div class="cube"></div> | ||
<div class="cube"></div> | ||
<div class="cube"></div> | ||
<div class="cube"></div> | ||
<div class="cube"></div> | ||
<div class="cube"></div> | ||
<div class="cube"></div> | ||
<div class="cube"></div> | ||
<div class="cube"></div> | ||
<div class="cube"></div> | ||
<div class="cube"></div> | ||
<div class="cube"></div> | ||
<div class="cube"></div> | ||
<? } else { ?> | ||
<? for($i = 0; $i < $cubeAmount; $i++) { ?> | ||
<div class="cube"></div> | ||
<? } ?> | ||
<? } ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.