mirror of
https://github.com/ant-design/ant-design.git
synced 2025-08-06 16:06:28 +08:00
animate time
This commit is contained in:
parent
bb98aa533a
commit
b85ead98ac
@ -2,10 +2,16 @@ $(function() {
|
||||
$('.component-demos .icon-all').on('click', function() {
|
||||
if ($(this).hasClass('expand')) {
|
||||
$(this).removeClass('expand');
|
||||
$('.code-box').find('.highlight').slideUp();
|
||||
$('.code-box').find('.highlight').animate({
|
||||
height: 'toggle',
|
||||
opacity: 'toggle'
|
||||
}, 150);
|
||||
} else {
|
||||
$(this).addClass('expand');
|
||||
$('.code-box').find('.highlight').slideDown();
|
||||
$('.code-box').find('.highlight').animate({
|
||||
height: 'toggle',
|
||||
opacity: 'toggle'
|
||||
}, 150);
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user