3
我有一個下拉菜單,它通過增加高度來動畫下拉菜單,但它從頂部到底部。是否有可能從底部到頂部?從jQuery底部向上滑動?
這裏是我的代碼:
animate({height:'show',opacity:'show'}, ddsmoothmenu.transition.overtime)
感謝。
我有一個下拉菜單,它通過增加高度來動畫下拉菜單,但它從頂部到底部。是否有可能從底部到頂部?從jQuery底部向上滑動?
這裏是我的代碼:
animate({height:'show',opacity:'show'}, ddsmoothmenu.transition.overtime)
感謝。
將獲取動畫的ul設置爲position: relative
(或絕對)和bottom: 0px
(或任何px最好)。另請刪除top: -88px
。
我相信這個解決方案是絕對定位元素bottom
。因此,只需將它包裝在position: relative
元素中,然後使用底部:讓它顯示出您想要的位置。