...
|
...
|
@@ -11,14 +11,14 @@ var $expand = $('.expand'), |
|
|
$brandIntro = $('.brand-intro'),
|
|
|
exCoTm = 6; // 展开隐藏的倍数
|
|
|
|
|
|
$expand.on('click', function () {
|
|
|
$brandIntro.removeClass("line-clamp").animate({height: $brandIntro.height() * exCoTm});
|
|
|
$expand.on('click', function() {
|
|
|
$brandIntro.removeClass('line-clamp').animate({height: $brandIntro.height() * exCoTm});
|
|
|
$expand.hide();
|
|
|
$collapse.show();
|
|
|
});
|
|
|
|
|
|
$collapse.on('click', function () {
|
|
|
$brandIntro.addClass("line-clamp").animate({height: $brandIntro.height() / exCoTm});
|
|
|
$collapse.on('click', function() {
|
|
|
$brandIntro.addClass('line-clamp').animate({height: $brandIntro.height() / exCoTm});
|
|
|
$collapse.hide();
|
|
|
$expand.show();
|
|
|
}); |
|
|
\ No newline at end of file |
|
|
}); |
...
|
...
|
|