Smoothen homepage clouds animation
authorOlga Brani <olgabrani78@gmail.com>
Tue, 2 Jul 2013 14:25:30 +0000 (17:25 +0300)
committerOlga Brani <olgabrani78@gmail.com>
Tue, 2 Jul 2013 14:25:30 +0000 (17:25 +0300)
cloudcms/static/cloudcms/js/common.js

index 23f11b9..9919dac 100644 (file)
@@ -156,8 +156,8 @@ $(document).ready(function() {
       function () {\r
        \r
         $(this).animate({\r
-           top: '+=-3'   \r
-           }, 0, function() {\r
+           top: '+=-5'   \r
+           }, 300, function() {\r
                if ($(this).find('img').attr('src').indexOf("_top") == -1) {\r
                        var src = $(this).find('img').attr('src').replace('.png', '_top.png')\r
                        $(this).find('img').attr("src", src);\r
@@ -166,17 +166,17 @@ $(document).ready(function() {
                });\r
         $(this).siblings('p').find('img').animate({\r
           width: '60%'       \r
-        }, 600);\r
+        }, 300);\r
       }, \r
       function () {\r
 \r
-        $(this).animate({top: '0'}, 600, function() {\r
+        $(this).animate({top: '0'}, 300, function() {\r
                var src = $(this).find('img').attr('src').replace('_top.png', '.png')\r
                        $(this).find('img').attr("src", src);\r
                });\r
         $(this).siblings('p').find('img').animate({\r
           width: '65%'       \r
-        },600);\r
+        },300);\r
       }\r
     );\r
     \r