Skip to content
Browse files

Intro anim

  • Loading branch information...
1 parent 246d31f commit 949eb8a6b38af4a1a8707c5ee8f8b898b677a878 @jakearchibald committed Jun 6, 2012
Showing with 22 additions and 15 deletions.
  1. +22 −15 www/assets/7/script/pageLayout.js
View
37 www/assets/7/script/pageLayout.js
@@ -82,7 +82,7 @@ spriteCow.pageLayout = (function() {
duration: 500,
easing: 'swing',
targets: [
- [$spriteCanvasContainer , {opacity: 1}]
+ [$spriteCanvasContainer, {opacity: 1}]
]
}
];
@@ -134,21 +134,28 @@ spriteCow.pageLayout = (function() {
i = 0;
currentView = 'app';
- doAnimStep(steps, 0, function() {
- var targets = [];
-
- $container.removeClass('intro');
-
- steps.forEach(function(step) {
- targets = targets.concat( step.targets );
- });
-
- targets.forEach(function(target) {
- for ( var propName in target[1] ) {
- target[0].css(propName, '');
- }
+
+ if ($.support.transition) {
+ doAnimStep(steps, 0, function() {
+ var targets = [];
+
+ $container.removeClass('intro');
+
+ steps.forEach(function(step) {
+ targets = targets.concat( step.targets );
+ });
+
+ targets.forEach(function(target) {
+ for ( var propName in target[1] ) {
+ target[0].css(propName, '');
+ }
+ });
});
- });
+ }
+ else {
+ $container.removeClass('intro');
+ }
+
}
};
})();

0 comments on commit 949eb8a

Please sign in to comment.
Something went wrong with that request. Please try again.