bootstrap-modal
bootstrap-modal copied to clipboard
How to add custom events to static backdrop clicks.
First off ... great work on this. I've used it on a couple of projects and it works great.
My question is:
How can I add custom functionality to the modal backdrop 'data-backdrop=static' event. Currently, the default functionality adds the 'shake animated' class to the wrapper of the modal. What I've been trying to figure out is how to add similar functionality (example: add the class 'pulse animated') to an existing element inside of the modal.
Would you be able to provide any insight in how to do this?
Thanks!
if you're including animate.css in your project already it should be as simple as
<div class="modal" data-attention-animation="pulse">...</div>
or
$('.modal').modal({ attentionAnimation: 'pulse' });
Using Chrome, latest version (30.0.1599.101), no animation can be seen. I try using data-backdrop, data-attention-animation, and even the javascript version, but no results. Can it be due to the bootstrap v3.0 version?
@madn3ss75 you can apply data-backdrop=static for BS in bootstrap v3.0 version ??