Created
October 31, 2022 05:07
Revisions
-
Grawl created this gist
Oct 31, 2022 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,25 @@ @for $i from 1 through 300 { $z: (random(360) * 1deg); // random angle to rotateZ $y: (random(360) * 1deg); // random to rotateX $hue: ((40/300 * $i) + 0); // set hue $orb-size: 100px; $time: 1s; circle:nth-child(#{$i}){ // grab the nth particle animation: orbit#{$i} $time infinite; animation-delay: ($i * .01s); fill: hsla($hue, 100%, 50%, 1); } @keyframes orbit#{$i}{ 10% { transform: rotateZ(-$z) rotateY($y) translateX($orb-size) rotateZ($z); } 80% { transform: rotateZ(-$z) rotateY($y) translateX($orb-size) rotateZ($z); } 100% { transform: rotateZ(-$z) rotateY($y) translateX( ($orb-size) ) rotateZ($z); } } } This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ { "sass": { "compiler": "dart-sass/1.32.12", "extensions": {}, "syntax": "SCSS", "outputStyle": "expanded" }, "autoprefixer": true }