Skip to content

Commit

Permalink
removing some old files and cleaning some trash comments
Browse files Browse the repository at this point in the history
  • Loading branch information
David Gamache authored and David Gamache committed May 13, 2014
1 parent 320f652 commit 2e8d539
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 37 deletions.
Binary file added parallax/.DS_Store
Binary file not shown.
Binary file removed parallax/favicon.png
Binary file not shown.
Binary file removed parallax/img/bg2-small.jpg
Binary file not shown.
Binary file removed parallax/img/davegamache.jpg
Binary file not shown.
2 changes: 0 additions & 2 deletions parallax/index.html
Expand Up @@ -62,8 +62,6 @@ <h2 class="byline">An experiment by Dave Gamache</h2>
</div>
<h3 class="error">Whoops! Right now this demo doesn't handle resizing or browsers less than 1000px wide. Reload this page or get on a laptop!</h3>

<!-- <script src="js/yepnope-1.5.4.min.js"></script> -->
<!-- <script src="js/loading.js"></script> -->
<script src="js/jquery-2.0.2.min.js"></script>
<script src="js/picasso.js"></script>
</body>
Expand Down
9 changes: 0 additions & 9 deletions parallax/js/loading.js

This file was deleted.

30 changes: 6 additions & 24 deletions parallax/js/picasso.js
Expand Up @@ -349,16 +349,13 @@
/* Animation/Scrolling
-------------------------------------------------- */
updatePage = function() {
// console.log(Math.abs(scrollTop - $window.scrollTop()) < 100);
// if(Math.abs(scrollTop - $window.scrollTop()) < 100) {
window.requestAnimationFrame(function() {
setScrollTops();
if(scrollTop > 0 && scrollTop <= (bodyHeight - windowHeight)) {
animateElements();
setKeyframe();
}
});
// }
setScrollTops();
if(scrollTop > 0 && scrollTop <= (bodyHeight - windowHeight)) {
animateElements();
setKeyframe();
}
});
}

setScrollTops = function() {
Expand Down Expand Up @@ -396,21 +393,8 @@
}

easeInOutQuad = function (t, b, c, d) {
// linear
// return c*t/d + b;

//quad out
// t /= d;
// return -c * t*(t-2) + b;

//sinusoadial in and out
return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b;

// quadinout
// t /= d/2;
// if (t < 1) return c/2*t*t + b;
// t--;
// return -c/2 * (t*(t-2) - 1) + b;
};

setKeyframe = function() {
Expand All @@ -427,12 +411,10 @@

showCurrentWrappers = function() {
var i;
// console.log("showCurrentWrappers called")
if(keyframes[currentKeyframe].wrapper != currentWrapper) {
$(currentWrapper).hide();
$(keyframes[currentKeyframe].wrapper).show();
currentWrapper = keyframes[currentKeyframe].wrapper;
// console.log($(keyframes[currentKeyframe].wrapper));
}
}

Expand Down
2 changes: 0 additions & 2 deletions parallax/js/yepnope-1.5.4.min.js

This file was deleted.

0 comments on commit 2e8d539

Please sign in to comment.