The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Jquery Slider Div Re: Jquery Slider Div


Hey! Mottie example works ok, but just in case you want to consider jQuery UI animation version; you may check [Your text to link here…]( “jQuery UI version”). You’ll need both jQuery & jQuery UI links

$( function(){
var prevActive;
$(“.nav li a”).on(“click”, function(){

var active = $(this).attr(‘name’);

if(prevActive !== active){
$(“.module”).hide(‘slide’,{ direction: ‘left’}, 300);
console.log(‘act: ‘+active);

$(‘#’+active).toggle(‘slide’, { direction: ‘left’}, 1000);

console.log(‘prev: ‘+prevActive);
prevActive = active;