0
我試圖讓一個按鈕向上滑動,並在用戶在頁面上顯示30秒後出現在屏幕的右下角。如何使用jQuery .slideUp()使一個浮動按鈕出現在角落?
該怎麼辦,我開始用DIV隱藏,然後讓它從底部滑出,因爲它出現?
這至今還沒有工作:
<div id="buttonContainer" class="">
<button>Submit</button>
</div>
function showSurvey(){
\t $('#buttonContainer').slideUp('slow');
};
#surveySpot {
\t position: fixed;
\t bottom: 20px;
\t right: 20px
}
你在哪裏調用'showSurvey()'? – Soviut
如果您不反對添加其他庫,請嘗試animate.css。它會在沒有jQuery的情況下做你想做的事情。 https://daneden.github.io/animate.css/ – JonLuca
效果基本show不作元素的舉動,但是從底部 –