3

この Stackoverflow Questionで提案されている方法を使用して、 を使用して jQueryslideDown関数を再作成しanimate、プロパティを使用できるようにしていstepます。

ただし、step プロパティを機能させることはできません。これが私のコードです:

    infoClone.animate({
        "height": "show",
        "marginTop": "show",
        "marginBottom": "show",
        "paddingTop": "show",
        "paddingBottom": "show",

        step : function() {
            console.log('Step!');
        }
    });
4

2 に答える 2

5

に変更する必要があります

infoClone.animate({
    "height": "show",
    "marginTop": "show",
    "marginBottom": "show",
    "paddingTop": "show",
    "paddingBottom": "show"
    }, {
    step : function() {
        console.log('Step!');
    }
});
于 2012-09-21T11:17:36.640 に答える
2

これを試して:

infoClone.animate({
        "height": "show",
        "marginTop": "show",
        "marginBottom": "show",
        "paddingTop": "show",
        "paddingBottom": "show"
},
{
  step : function() {
            console.log('Step!');
        }
});
于 2012-09-21T11:18:09.313 に答える