0

私はこれが別のスタックオーバーフローの投稿に似ていることを知っていますが、それは私の質問に答えませんでしたjquery .animate different speeds

これが私のjsです

$.fx.speeds._default = 1000;

$(function () {
    $("#tabs").tabs();
});

function social() {
    $(document).ready(function () {
        $(".info7").hide();
        $("#social_media").show("fade");
        $("#hide").show();
    });
}

function social_hide() {
    $(document).ready(function () {
        $(".info7").show();
        $("#social_media").hide("fade");
        $("#hide").hide();
    });
}

<!--
if (screen.width <= 800) {
    document.location = "iphone-website.php";
}
//-->

//tipsy popup code

$(function () {
    $('.info').tipsy({fade:true, gravity:'s', fallback:"Use the different search engines to find what you're looking for, These search engines search leagucraft.com and mobafire.com for the information you need."});
    $('.info2').tipsy({fade:true, gravity:'s', fallback:"Click this to open the search engine box in another window."});
    $('.info3').tipsy({fade:true, gravity:'s', fallback:"You can put your user name here instead."});
    $('.info4').tipsy({fade:true, gravity:'s', fallback:"League of Legends InfoMatic Blog."});
    $('.info5').tipsy({fade:true, gravity:'s', fallback:"League of Legends InfoMatic Facebook page."});
    $('.info6').tipsy({fade:true, gravity:'s', fallback:"This website is mobile browser friendly!"});
    $('.info7').tipsy({fade:true, gravity:'s', fallback:"Click here to show the social media buttons."});
    $('.info8').tipsy({fade:true, gravity:'s', fallback:"Click here to hide the social media buttons."});
});

function init() {
    $(document).ready(function () {
        $("body").show("fade");
    });
}

なんらかの理由で$.fx.speeds._default=1000を入れても; すべてのjquery関数の背後またはw/eは、すべてまだ異なる速度です。

4

1 に答える 1

1

アニメーションはタイマーを使用して、UI のブロックを回避し、「非同期イベント」をシミュレートします。

J.Resigの投稿によると

タイマーがすぐに実行されないようにブロックされている場合、次の可能な実行ポイントまで遅延されます (これは、必要な遅延よりも長くなります)。

したがって、タイマーは正確ではありません

于 2012-05-23T20:11:52.220 に答える