$("a.details")
.click(function() {
var $this = $(this);
$this.parents(".subscription")
.find('.plan-details')
.stop(true, true)
.animate({
height: ['toggle', 'easeOutBounce']
}, 'slow',
function() {
$this.text(function (i, text) {
return text == 'View Details' ? 'Hide Details' : 'View Details';);
}) ,
function (e) {
$this.parents(".subscription")
.find('.plan-details')
.stop(true, true)
.animate({
height: 'toggle'
});
});
가 바이올린 반송 : http://jsfiddle.net/6fCrd/이슬라이드
... 내가 잘못 여기서 뭐하는 거지 확실하지, 그것은 작동하지 않습니다. 바운스 (bounce) 효과와 함께 아래로 내려야하고 트리거 텍스트도 변경해야합니다. 여기에 구문 오류가있을
은 어쩌면 [바이올린] 추가 (http://jsfiddle.net) 그래서 우리는 그것을 볼 수 있습니다 –
아 죄송합니다, 지금은 – 3zzy