javascript - jQuery Tab Fade Animation - Stack Overflow

I have implemented jQuery tabs and am using the opacity technique to fade one tab out and then fade ano

I have implemented jQuery tabs and am using the opacity technique to fade one tab out and then fade another in. I would like to have the second image fade over the first and then hide the first image. That way the background behind the tabs will not be shown. Please advise.

Current jQuery code:

<script type="text/javascript">
    $(function() {
        $('#web-select').tabs({ fx: { opacity: 'toggle', duration:'fast'} });
    });
</script>

I have implemented jQuery tabs and am using the opacity technique to fade one tab out and then fade another in. I would like to have the second image fade over the first and then hide the first image. That way the background behind the tabs will not be shown. Please advise.

Current jQuery code:

<script type="text/javascript">
    $(function() {
        $('#web-select').tabs({ fx: { opacity: 'toggle', duration:'fast'} });
    });
</script>
Share Improve this question asked Aug 27, 2009 at 3:09 Brad BirdsallBrad Birdsall 1,7433 gold badges23 silver badges27 bronze badges 1
  • FYI: Code actually works with 1.8.15 now – chrisl-921fb74d Commented Aug 11, 2011 at 20:34
Add a ment  | 

2 Answers 2

Reset to default 2

Your code above will work in the 1.6 UI, but in the 1.7.2 UI version try the following:

$('#web-select').tabs('option', 'fx', { opacity: 'toggle', duration: 'fast' });

You could use the .show() and .hide() snippets to do such a thing!

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745620098a4636467.html

相关推荐

  • javascript - jQuery Tab Fade Animation - Stack Overflow

    I have implemented jQuery tabs and am using the opacity technique to fade one tab out and then fade ano

    12小时前
    40

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信