单击时更改动画,然后在触摸jquery上单击另一个图像时返回动画

时间:2016-06-06 11:19:26

标签: javascript jquery mobile

HtmlDocument doc = new HtmlDocument();
doc.Load("file.htm");
foreach(HtmlNode link in doc.DocumentElement.SelectNodes("//a[@href"])
{
    HtmlAttribute att = link["href"];
    att.Value = FixLink(att);
}
doc.Save("file.htm");
$(".pen").click(function(){
           
    $(this).animate({height: '+70px'});
    $(this).css('padding-top' ,'10px');
    $(this).not.animate({height: '+60px'});
    $(this).not.css('padding-top' ,'20px');        
});

我的phonegap应用程序中有一个笔工具滑块,我使用jquery mobile for framework。我喜欢在选中时切换笔必须突出显示而另一个必须向下滑动。我动画图像以提供缩放效果,我不知道如何在单击另一个元素时反转它。请帮助我作为新的

1 个答案:

答案 0 :(得分:0)



$(".pen").click(function(){
  $(this).animate({height: '+70px'});
  $(this).css('padding-top' ,'10px');
  $(".pen").not($(this)).animate({height: '+60px'});
  $(".pen").not($(this)).css('padding-top' ,'20px');
});




将not函数更改为此函数及其现在正在运行

感谢您回复vijayP,您的回复是值得赞赏的

相关问题