0
我在jQuery中設置了一個矩形,從width:0px, heihgt:0px;
到width:564px; height:264px;
。如何從不同的角度啓動jquery動畫?
動畫從左上角開始,是否可以從左下角開始動畫?
我在jQuery中設置了一個矩形,從width:0px, heihgt:0px;
到width:564px; height:264px;
。如何從不同的角度啓動jquery動畫?
動畫從左上角開始,是否可以從左下角開始動畫?
你需要讓它的起源是左下角位置的矩形。你可以使用絕對定位。
.container {
position: relative;
}
.rectangle {
position: absolute;
bottom: 0; left: 0;
}
希望幫助:)
對於動畫左下角,高度應在window.height()
初始點..