I am pretty sure javafx doesn’t have a sliding effect. I assume a scaletransition effect when you say sliding effect.
If this is the case take a look here: http://docs.oracle.com/javafx/2/api/index.html?javafx/animation/ScaleTransition.html
Have a look at the following samples, and if they are not what you are looking for, please post back with a more elaborate description of your issues and an sscce of what you have tried so far (even if it doesn't function as you want it to).
I need Slider Window in javafxml or javafx like how the slider window work properly in java swing same sliding windows (Swing / AWT / SWT forum at JavaRanch) thing i need with javafxml and javafx please help me i am absolutly new for javafx and javafxml.Thanx in Advance...
I don't really want to write this code for you.
Try translating the Swing based sample to JavaFX and post back questions with your JavaFX code if you get stuck.