提交 f62f0b5c 编写于 作者: A afc163

rollback slideToggle

上级 279bee60
$(function() { $(function() {
$('.component-demos .icon-all').on('click', function() { $('.component-demos .icon-all').on('click', function() {
//if ($(this).hasClass('expand')) { if ($(this).hasClass('expand')) {
// $(this).removeClass('expand'); $(this).removeClass('expand');
// $('.code-box .highlight').animate({ $('.code-box .highlight').animate({
// height: 'hide', height: 'hide',
// opacity: 0 opacity: 0
// }, 150); }, 150);
//} else { } else {
// $(this).addClass('expand'); $(this).addClass('expand');
// $('.code-box .highlight').animate({ $('.code-box .highlight').animate({
// height: 'show', height: 'show',
// opacity: 1 opacity: 1
// }, 150); }, 150);
//} }
$('.code-box .highlight').slideToggle(150);
}); });
$('.code-box').each(function(i, item) { $('.code-box').each(function(i, item) {
...@@ -22,11 +21,10 @@ $(function() { ...@@ -22,11 +21,10 @@ $(function() {
}); });
$('.code-boxes').on('click', '.collapse', function() { $('.code-boxes').on('click', '.collapse', function() {
//$(this).parent().parent().find('.highlight').animate({ $(this).parent().parent().find('.highlight').animate({
// height: 'toggle', height: 'toggle',
// opacity: 'toggle' opacity: 'toggle'
//}, 150); }, 150);
$(this).parent().parent().find('.highlight').slideToggle(150);
}); });
var navFunc = { var navFunc = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册