Easiest way to slide to position (position absolute)

What is the easiest way to slide an element up and down which has an absolute position? I was thinking of using a transform transition with translate unless there's an easier way to add sliding transitions to position changes.


CSS transition would be the easiest way I think (no files to add)

Or you can use jquery with .animate like this :


If you are looking to use CSS, I would recommend checking out https://daneden.me/animate/

The site will let you build a custom CSS solution with a lot of different animations. Its a pretty decent library. If you are looking to use jQuery, then using .animate would be the way to go, as chadocat suggested. :)

Need Your Help

Creating a keyboard hook for a Java program that sits in the System Tray

java keyboard system handle system-tray

Basically I have a java program that runs in the system tray and would like to add make it so if the user pressed say CTRL+SHIFT+1 it selects one of the right click options of the java program that...

MySQL Select: Case When Or Something Else?


First time poster, long-time reader. I have been teaching myself code othe past 6-8 months and I like to think that I am fairly getting decent at the PHP/Javascript/MySQL stack. I definitely love the