jquery - Detect if element is in view of Bootstrap modal? -
i'm loading separate html page bootstrap modal window. in modal, there elements need animate using animate.css. can part work, problem can't figure out how determine when element want animate in view in viewport when modal open can use jquery add animate classes. help?
thanks!
i haven't tried think shall work. first add class elements invisible default:
.el { visibility: hidden; }
then check when modal gets opened , change css js visibility: visible;
$('#mymodal').on('shown.bs.modal', function () { $('.el').css('visibility', 'visible'); });
i suppose attached animations start running right after.
Comments
Post a Comment