angela angela - 8 months ago 50
jQuery Question

How to slide toggle a div right to left?

Please see this fiddle

I want the link

to slide toggle right to left?

$(document).ready(function() {

$('.soundDiv-link').click(function() {

$('.videoDiv-link').click(function() {
$('#videoDiv').next().animate({width: 'toggle'}, "slow")

$('.imagesDiv-link').click(function() {
$('#imagesDiv').animate({width: 'toggle'}, "slow")


The issue is that you have left and right set. Just set right to 0 and it will work.

#imagesDiv {
    background-color: yellow;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0px;
    bottom: 0px;
    right: 0px;
    overflow: hidden;
    display: none;