From a13220f84e0df5b6f212cbc7e6104389a98bd3c8 Mon Sep 17 00:00:00 2001 From: Olga Brani Date: Tue, 2 Jul 2013 17:25:30 +0300 Subject: [PATCH] Smoothen homepage clouds animation --- cloudcms/static/cloudcms/js/common.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cloudcms/static/cloudcms/js/common.js b/cloudcms/static/cloudcms/js/common.js index 23f11b9..9919dac 100644 --- a/cloudcms/static/cloudcms/js/common.js +++ b/cloudcms/static/cloudcms/js/common.js @@ -156,8 +156,8 @@ $(document).ready(function() { function () { $(this).animate({ - top: '+=-3' - }, 0, function() { + top: '+=-5' + }, 300, function() { if ($(this).find('img').attr('src').indexOf("_top") == -1) { var src = $(this).find('img').attr('src').replace('.png', '_top.png') $(this).find('img').attr("src", src); @@ -166,17 +166,17 @@ $(document).ready(function() { }); $(this).siblings('p').find('img').animate({ width: '60%' - }, 600); + }, 300); }, function () { - $(this).animate({top: '0'}, 600, function() { + $(this).animate({top: '0'}, 300, function() { var src = $(this).find('img').attr('src').replace('_top.png', '.png') $(this).find('img').attr("src", src); }); $(this).siblings('p').find('img').animate({ width: '65%' - },600); + },300); } ); -- 1.7.10.4