Jump to content

change jQuery toggle slide in direction?


Recommended Posts

change jQuery slide in direction? Currently, my custom select slides in form the top left. How can I make it slide in form the bottom right? I looked, but I cannot find this simple answer. Thanks!


Here is the code... The toggle sections are bolded.


$.fn.SelectCustomizer = function(){

// Select Customizer jQuery plug-in

// based on customselect by Ace Web Design http://www.adelaidewebdesigns.com/2008/08/01/adelaide-web-designs-releases-customselect-with-icons/

// modified by David Vian http://www.ildavid.com/dblog

return this.each(function(){

var obj = $(this);

var name = obj.attr('id');

var id_slc_options = name+'_options';

var id_icn_select = name+'_iconselect';

var id_holder = name+'_holder';

var custom_select = name+'_customselect';





" + $(this).html() + "



" + this.title + "





$("#"+id_holder+ " .selectitems").mouseover(function(){



$("#"+id_holder+" .selectitems").mouseout(function(){



$("#"+id_holder+" .selectitems").click(function(){

$("#"+id_holder+" .selectedclass").removeClass("selectedclass");


var thisselection = $(this).html();








/* Fire CustomSelect */

$(document).ready(function() { $('#loginselect').SelectCustomizer();

Link to comment
Share on other sites

Thanks Ben! That seems to be a good start. I'll play with, but I already know I'm going to have some trouble integrating it. But I don't see in his examples exactly what I'm after. See in my test page here http://www.visibilityinherit.com/projects/customselect.php how the drop fades in from the top/left corner? I need it to simply fade in from the bottom/right corner. Thanks for looking!

Link to comment
Share on other sites

For items to slide in from right bottom, it's required that those items are positioned absolutely WITHIN a relatively positioned block element. Also it has to be aligned by bottom:x and right:x css.


However seeing the hidden select list is positioned absolutely but not within a relatviely positioned element, I can't see any way to achieve what you're trying to do.


However, in my opinion, a select box sliding down is much better and looks correct as opposed to sliding up. :P

Edited by BeeDev
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...