Slide up from bottom with jQuery?

I have a dropdown menu which animates the dropdown by increasing height, however it goes from the top to the bottom. Is it possible to go from the bottom to the top?

Here's my code:

animate({height:'show',opacity:'show'}, ddsmoothmenu.transition.overtime)

Thanks.

Answers


Set the ul that gets animated to position: relative (or absolute) and bottom: 0px (or whatever px works best). Also remove top: -88px.


I believe a solution to this is to absolutely position the element bottom. So just wrap it in a position: relative element and then use bottom: to get it to show up where you want it to go.


Need Your Help

mysqli_query + foreach works differently in local and server

php sql mysqli localhost

I wonder if this proceeding is correct or not, but it worked for me most of times (until now).

Return data from C++ exe to web

php c++ web-services exe

I have a program that reads some input files, and creates a (very large) output file.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.