모달 안에 Foundation Zurb의 궤도 기능을 포함하려고합니다. 모달은 각 슬라이드마다 크기를 조정해야합니다.모달 창의 Zurb 궤도가 정확하게 크기 조정되지 않음
현재 최대 슬라이드 (즉, 전체 모달 창)의 최대 높이로 크기가 조정됩니다. 대신 <li class="active">
을 대상으로하고 해당 요소에 맞게 모달 창 크기를 조정해야합니다.
<script>
$('#introModal').on('opened', function(){
$(window).trigger('resize');
});
$("#introModal").on("after-slide-change.fndtn.orbit", function(event, orbit) {
console.info("after slide change");
$(window).trigger('resize');
});
</script>
<div class="row">
<a href="#" data-reveal-id="introModal" data-reveal class="button radius">Click For Modal</a>
</div>
<div id="introModal" class="reveal-modal medium" data-reveal>
<ul data-orbit>
<li>
<h2>Slide 1</h2>
<p>Some content in here.</p>
<img src="http://placekitten.com/400/300" />
</li>
<li>
<h2>Slide 2</h2>
<p>A description goes in here. This slide is larger and should expand.</p>
<img src="http://placekitten.com/400/600" />
</li>
</ul>
</div>
트릭을 완벽하게 했나요? 감사. :) – Carl