Permalink
Browse files

Tuned page load easing

  • Loading branch information...
1 parent c9b2ec8 commit e23011d93d64f3cdda550799d60503bcd0f9419e jaukia committed Apr 13, 2011
Showing with 5 additions and 4 deletions.
  1. +0 −1 site.css
  2. +5 −3 site.js
View
@@ -20,7 +20,6 @@ li {
margin-right:auto;
padding:40px;
background-color: #444;
- opacity:0.0;
-webkit-border-radius:4px;
-moz-border-radius:4px;
}
View
@@ -1,10 +1,12 @@
$(document).ready(function() {
- $(".main").animate({"opacity":1.0},1500,"easieEaseIn");
+ // animate main box when loading the page
+ $(".main").css({"opacity":0.0}).animate({"opacity":1.0},600,"easieEaseIn");
- showGraph("easieEaseInOut");
+ // setup interaction on the web page (and set the initial easing)
+ setupInteraction("easieEaseInOut");
});
-function showGraph(easingName) {
+function setupInteraction(easingName) {
var h = 200;
var w = 200;
var p = 10;

0 comments on commit e23011d

Please sign in to comment.