Skip to content

Commit

Permalink
fix performance issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Megaemce committed Apr 10, 2024
1 parent 9d71136 commit a9ff4eb
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 23 deletions.
25 changes: 12 additions & 13 deletions fire.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ body {
position: relative;
height: 100vh;
width: 100vw;
background-color: black;
}

.bone_back {
Expand All @@ -30,35 +29,35 @@ body {

mix-blend-mode: exclusion;

animation: flickering 6s cubic-bezier(0.5, 0, 0.06, 1.43) infinite;
animation: flickering 5s cubic-bezier(0.5, 0, 0.06, 1.43) infinite;
}

.fire {
position: absolute;
z-index: 1;
width: 100vw;
height: calc(100vw / var(--aspect-ratio));
height: 100vh;
bottom: 0;

mix-blend-mode: hard-light;
}

.fire.on {
background-image: url(noiseSmall.svg), url(noise1.svg), url(noise.svg),
linear-gradient(180deg, #000000, #a63c3cee 50%, #f9ae05d4);
linear-gradient(180deg, #000000, #656565d1 50%, #ffb100);
background-size: 50vmin 50vmin, 50vmin 50vmin, 50vmin 50vmin, 100% 100%;
background-blend-mode: color-burn, color-burn, color-burn, hard-light;
background-size: contain;

filter: sepia(1) contrast(6);

animation: firing 60s linear infinite;
animation: firing 10s linear infinite;
}

.fire_limits {
position: absolute;
z-index: 2;
width: 100vw;
height: calc(100vw / var(--aspect-ratio));
height: 100vmax;
bottom: 0;

background-image: radial-gradient(
Expand Down Expand Up @@ -131,18 +130,18 @@ button {

font-size: xx-large;
font-family: monospace;
color: rgb(98, 48, 1);
background-color: #000000;
color: rgb(111, 73, 34);
background-color: #000000d7;
border: none;
cursor: pointer;
}

@keyframes firing {
from {
background-position: 512px 9216px, 1536px 0, 0 7168px, 0;
100% {
background-position: 25vmin -100vmin, -25vmin -100vmin, 0 -100vh, 0;
}
to {
background-position: 512px 4216px, 512px 216px, 1024px 0, 0;
0% {
background-position: -25vmin 100vmin, 25vmin 100vmin, 0 100vh, 0;
}
}

Expand Down
6 changes: 3 additions & 3 deletions noise.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions noise1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions noiseSmall.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a9ff4eb

Please sign in to comment.