angela angela - 1 year ago 132
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")

Answer Source

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;
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download