I am trying to create an animation effect as shown below.
$(document).ready(function () {
$('.lovebtn').click(function () {
$('.love').animate({
height: '672px'
}, 1000, function () {
$('.lovetxt').css("display", "block");
$(".lovebtn .button").attr("src", "images/btn_love_close.gif");
});
});
$('.lustbtn').click(function () {
$('.lust').animate({
height: '672px'
}, 1000, function () {
$('.lusttxt').css("display", "block");
$(".lustbtn .button").attr("src", "images/btn_lust_close.gif");
});
});
$('.luxurybtn').click(function () {
$('.maskbg').css("display", "block");
$('.luxury').animate({
height: '1056px'
}, 1000, function () {
$('.luxurytxt').css("display", "block");
$(".luxurybtn .button").attr("src", "images/btn_luxury_close.gif");
});
});
});
http://uniquedl.com/3closets/index.html
when you go to the ablove page and press the three buttons on love lust and luxury. you get a number of effects. when I press the same button, I will not change the effect.
any hints how can i do this?
source
share