Animate CC - button to trigger Bootstrap modal on webpage. Bootstrap Modal.
Hi,
I've just started using Animate CC. I’ll try to give you as much information as I can and see if anyone has any answers.
I’m trying to make a presentation in Animate. It is embedded on a website using an iframe.
The website is using bootstrap as a framework.
So I want to use the built in popup overlay that bootstrap uses to popup when you click on a button in my Animate presentation.
Normally I would just use this code to implement an overlay modal in an html page:
<!-- Trigger the modal with a button -->
<button type="button" class="btn btn-info btn-lg" id="myBtn">Open Modal</button>
<!-- Modal -->
<div class="modal fade" id="myModal" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Modal Header</h4>
</div>
<div class="modal-body">
<p>Some text in the modal.</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<script>
$(document).ready(function(){
$("#myBtn").click(function(){
$("#myModal").modal();
});
});
</script>
Here is a functional example of it as well: Bootstrap Modal - Tryit Editor v3.3
I've tried using the "mouse click event" code snippet to see if I could alter it so it could be used but I must be doing something wrong.
I was just wondering if anyone could show any examples about how I would go about triggering the modal.
Let me know if I'm missing any information.
Thanks.
