我正在尝试在选项卡式布局中使用过渡。
我正在研究 Laravel 框架。我的js代码不起作用...
期望的结果:选项卡内容出现并随着转换的实施而消失。
现在:选项卡正确切换,但立即 - 没有过渡。
$('#tabnavigation .item').click(function() {
$('.ui .tab .segment').transition('slide down');
});
我的观点是这样的:
<a class="item red active" data-tab="first">One</a>
<a class="item blue" data-tab="second">Two</a>
<a class="item blue" data-tab="third">Three</a>
<a class="item blue" data-tab="fourth">Four</a>
<a class="item blue" data-tab="fifth">Five</a>
</div>
<div class="ui tab segment active" data-tab="first">
@include('widgets._15_elections_introduction')
</div>
<div class="ui tab segment" data-tab="second">
@include('widgets._15_elections_bycandidate')
</div> {{-- second --}}
<div class="ui tab segment" data-tab="third">
@include('widgets._15_elections_byelectoralcommitee')
</div>
<div class="ui tab segment" data-tab="fourth">
@include('widgets._15_elections_add_refine')
</div>
<div class="ui tab segment" data-tab="fifth">
@include('widgets._15_elections_help')
</div>
有人帮我吗?