I have a problem with twitter bootstrap motive ...
It works fine when I don't have a .fade class for my element. As soon as I add it, the modal does not appear.
I tracked the problem down to this line, I think:
doAnimate ? this.$backdrop.one(transitionEnd, callback) : callback()
doAnimate webkitTransitionEnd , this looks great. But I think transitionEnd never starts because I'm trying to write something in a callback, and it never registers.
Any ideas?
EDIT: some code
Link:
<a href="/events/2-fefewfewfe/rsvps" data-backdrop="true" data-controls-modal="event-modal" data-keyboard="true">I'm attending!<span class="ico join"></span></a>
Modal (works without the fade class without adding it)
<div id="event-modal" class="modal hide fade"></div>
css:
.modal.fade { -webkit-transition: opacity .3s linear, top .3s ease-out; -moz-transition: opacity .3s linear, top .3s ease-out; -ms-transition: opacity .3s linear, top .3s ease-out; -o-transition: opacity .3s linear, top .3s ease-out; transition: opacity .3s linear, top .3s ease-out; top: -25%; }
Did I miss something?
Thanks.
jquery javascript-events twitter-bootstrap
Robin
source share