Skip to content

Commit

Permalink
Many bug improvements and fixes
Browse files Browse the repository at this point in the history
fixes towards issues #14 and #15
  • Loading branch information
hellsan631 committed Oct 4, 2015
1 parent fd3191e commit 95052c5
Show file tree
Hide file tree
Showing 9 changed files with 711 additions and 330 deletions.
4 changes: 4 additions & 0 deletions demo/assets/css/perspectiveRules.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
overflow: hidden;
}

.ld-overlap-container {
position: absolute;
}

.ld-smart-container .ld-3d-parent {
width: 100%;
height: 100%;
Expand Down
4 changes: 2 additions & 2 deletions demo/demo5.html
Original file line number Diff line number Diff line change
Expand Up @@ -573,8 +573,8 @@
document.getElementsByClassName('card'),
{
container: 'self',
//perspectiveMulti: 1.2,
mouseMode: 'window',
perspectiveMulti: 1.2,
mouseMode: 'magnetic',
outerBuffer: 2,
effectWeight: 3
}
Expand Down
21 changes: 12 additions & 9 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
<link href="assets/css/style.css" rel="stylesheet" />
<link href="assets/css/perspectiveRules.css" rel="stylesheet" />
<style>
body {
overflow: hidden;
}
</style>
</head>
<body>

Expand All @@ -31,7 +36,12 @@
<script src="assets/js/jquery.particleground.min.js"></script>
<script src="jquery.logosDistort.js"></script>
<script>
var particles = true;
var particles = {
dotColor: '#1ec5ee',
lineColor: '#0a4e90',
density: 20000,
parallax: false
};
var particleDensity;
var options = {
effectWeight: 1,
Expand All @@ -40,14 +50,7 @@
perspectiveMulti: 1.5,
enableSmoothing: true,
onInit: function() {
if (particles) {
return $('#particle-target').particleground({
dotColor: '#1ec5ee',
lineColor: '#0a4e90',
density: 20000,
parallax: false
});
}
$('#particle-target').particleground(particles);
}
};

Expand Down
Loading

0 comments on commit 95052c5

Please sign in to comment.