sliding

jQuery .slideRight effect

雨燕双飞 提交于 2019-11-26 13:50:38
问题 I need for a div tag to slide out on the right side of the screen, how do I get this effect with jQuery? I've been looking here: http://api.jquery.com/category/effects/sliding/ and it doesn't seem to be what I'm looking for... 回答1: If you're willing to include the jQuery UI library, in addition to jQuery itself, then you can simply use hide(), with additional arguments, as follows: $(document).ready( function(){ $('#slider').click( function(){ $(this).hide('slide',{direction:'right'},1000); }

Twitter Bootstrap carousel vertical sliding

◇◆丶佛笑我妖孽 提交于 2019-11-26 08:09:41
问题 Is it possible to implement vertical carousel sliding widh Twitter Bootstrap? In bootstrap.js I find this , slide: function (type, next) { var $active = this.$element.find(\'.active\') , $next = next || $active[type]() , isCycling = this.interval , direction = type == \'next\' ? \'left\' : \'right\' , fallback = type == \'next\' ? \'first\' : \'last\' , that = this I tried to change direction to \"up\" and \"down\" but sliding not working. 回答1: Yes. Below is a hacky way to do it, which does