I am exploring the idea of creating two dynamic boxes that appear when a button is clicked, much like the effect seen when "About Me" is selected on . After struggling to decipher how it was achieved, I opted for utilizing modals. However, I encountered difficulties in synchronizing the animation of both boxes when using separate modal elements. I managed to make it work by incorporating two different divs within a single modal:
<div id="myModal" class="modal col-xs-12 col-lg-6">
<!-- Modal content -->
<div class="modal-content1">
<span class="close">×</span>
<h2>About Me</h2>
<p>blah blah>
</div>
<div class="modal-content2 col-xs-12 col-lg-6">
<span class="close">×</span>
<h2>Super powers</h2>
<p>blah blah>
</div>
</div>
However, this setup results in individual animations and lacks the seamless integration seen in the desired example (where they enter from different directions). Should I stick with modals for this task, or is there a more effective approach? Despite my search for relevant examples, I have yet to come across any demonstrations featuring dual boxes. Any guidance you can provide would be greatly appreciated. Thank you in advance!