触发来自Javascript的Material Bootstrap的连锁波动效果

时间:2015-10-07 13:46:01

标签: javascript jquery twitter-bootstrap javascript-events material-design

如何在Material Bootstrap上触发Javascript的涟漪效应?

尝试了几个事件,似乎都没有触发它。

HTML

<button class="btn btn-primary" id="toTrigger">Colored</button>
<button class="btn btn-primary" id="btnTrigger">Trigger Button Colored</button>

的Javascript

$('#btnTrigger').click(function(e){
   $('#toTrigger').trigger( 'mousedown, mouseup, click' );
   $('#toTrigger').trigger( e );
   $('#toTrigger').find('.ripple-wrapper').trigger('mousedown, mouseup, click'); 
   $('#toTrigger').find('.ripple-wrapper').trigger(e);
});

JSFiddle

0 个答案:

没有答案