Skip to content

Commit efe72e1

Browse files
committed
tweak snowflakes
1 parent 859f43f commit efe72e1

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

index.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,9 +385,13 @@ <h4>Tell your friends about NWoC</h4>
385385

386386
</main>
387387
</div>
388-
<div class="snowflakes"><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i></div>
388+
<div class="snowflakes"></div>
389389
</body>
390390
<script>
391+
for(var i = 0; i < window.innerWidth/80; i++){
392+
var node = document.createElement("i");
393+
document.getElementsByClassName("snowflakes")[0].appendChild(node);
394+
}
391395

392396
$.fn.jQuerySimpleCounter = function( options ) {
393397
var settings = $.extend({

style.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -713,8 +713,8 @@ footer p strong {
713713

714714

715715
.snowflakes {
716-
width:95%; height: 100%;
717-
position: absolute; top: -90px; left: 0;
716+
width:90%; height: 100%;
717+
position: absolute; top: -90px; left: 10%;
718718
}
719719

720720
.snowflakes i, .snowflakes i:after, .snowflakes i:before { background: white; }
@@ -746,7 +746,7 @@ footer p strong {
746746
}
747747

748748
.snowflakes i:nth-child(3n) {
749-
width: 16px; height: 4px;
749+
width: 100px; height: 4px;
750750
-webkit-animation-duration: 6s;
751751
-webkit-animation-iteration-count: 30;
752752
/* -webkit-transform-origin: right -45px; */

0 commit comments

Comments
 (0)