-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
160 additions
and
11 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
96 changes: 96 additions & 0 deletions
96
particles.js-master/particles.js-master/demo/css/style.css
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,96 @@ | ||
/* ============================================================================= | ||
HTML5 CSS Reset Minified - Eric Meyer | ||
========================================================================== */ | ||
|
||
html,body,div,span,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,abbr,address,cite,code,del,dfn,em,img,ins,kbd,q,samp,small,strong,sub,sup,var,b,i,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,figcaption,figure,footer,header,hgroup,menu,nav,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent} | ||
body{line-height:1} | ||
article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block} | ||
nav ul{list-style:none} | ||
blockquote,q{quotes:none} | ||
blockquote:before,blockquote:after,q:before,q:after{content:none} | ||
a{margin:0;padding:0;font-size:100%;vertical-align:baseline;background:transparent;text-decoration:none} | ||
mark{background-color:#ff9;color:#000;font-style:italic;font-weight:bold} | ||
del{text-decoration:line-through} | ||
abbr[title],dfn[title]{border-bottom:1px dotted;cursor:help} | ||
table{border-collapse:collapse;border-spacing:0} | ||
hr{display:block;height:1px;border:0;border-top:1px solid #ccc;margin:1em 0;padding:0} | ||
input,select{vertical-align:middle} | ||
li{list-style:none} | ||
|
||
|
||
/* ============================================================================= | ||
My CSS | ||
========================================================================== */ | ||
|
||
/* ---- base ---- */ | ||
|
||
html,body{ | ||
width:100%; | ||
height:100%; | ||
background:#111; | ||
} | ||
|
||
html{ | ||
-webkit-tap-highlight-color: rgba(0, 0, 0, 0); | ||
} | ||
|
||
body{ | ||
font:normal 75% Arial, Helvetica, sans-serif; | ||
} | ||
|
||
canvas{ | ||
display:block; | ||
vertical-align:bottom; | ||
} | ||
|
||
|
||
/* ---- stats.js ---- */ | ||
|
||
.count-particles{ | ||
background: #000022; | ||
position: absolute; | ||
top: 48px; | ||
left: 0; | ||
width: 80px; | ||
color: #13E8E9; | ||
font-size: .8em; | ||
text-align: left; | ||
text-indent: 4px; | ||
line-height: 14px; | ||
padding-bottom: 2px; | ||
font-family: Helvetica, Arial, sans-serif; | ||
font-weight: bold; | ||
} | ||
|
||
.js-count-particles{ | ||
font-size: 1.1em; | ||
} | ||
|
||
#stats, | ||
.count-particles{ | ||
-webkit-user-select: none; | ||
margin-top: 5px; | ||
margin-left: 5px; | ||
} | ||
|
||
#stats{ | ||
border-radius: 3px 3px 0 0; | ||
overflow: hidden; | ||
} | ||
|
||
.count-particles{ | ||
border-radius: 0 0 3px 3px; | ||
} | ||
|
||
|
||
/* ---- particles.js container ---- */ | ||
|
||
#particles-js{ | ||
width: 100%; | ||
height: 100%; | ||
background-color: #b61924; | ||
background-image: url(''); | ||
background-size: cover; | ||
background-position: 50% 50%; | ||
background-repeat: no-repeat; | ||
} |
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,48 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>particles.js</title> | ||
<meta name="description" content="particles.js is a lightweight JavaScript library for creating particles."> | ||
<meta name="author" content="Vincent Garreau" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"> | ||
<link rel="stylesheet" media="screen" href="css/style.css"> | ||
</head> | ||
<body> | ||
|
||
<!-- count particles --> | ||
<div class="count-particles"> | ||
<span class="js-count-particles">--</span> particles | ||
</div> | ||
|
||
<!-- particles.js container --> | ||
<div id="particles-js"></div> | ||
|
||
<!-- scripts --> | ||
<script src="../particles.js"></script> | ||
<script src="js/app.js"></script> | ||
|
||
<!-- stats.js --> | ||
<script src="js/lib/stats.js"></script> | ||
<script> | ||
var count_particles, stats, update; | ||
stats = new Stats; | ||
stats.setMode(0); | ||
stats.domElement.style.position = 'absolute'; | ||
stats.domElement.style.left = '0px'; | ||
stats.domElement.style.top = '0px'; | ||
document.body.appendChild(stats.domElement); | ||
count_particles = document.querySelector('.js-count-particles'); | ||
update = function() { | ||
stats.begin(); | ||
stats.end(); | ||
if (window.pJSDom[0].pJS.particles && window.pJSDom[0].pJS.particles.array) { | ||
count_particles.innerText = window.pJSDom[0].pJS.particles.array.length; | ||
} | ||
requestAnimationFrame(update); | ||
}; | ||
requestAnimationFrame(update); | ||
</script> | ||
|
||
</body> | ||
</html> |