How to use Zurb Foundation reveal with open, opened, close, closed callback functions?

后端 未结 9 538
执念已碎
执念已碎 2021-02-05 01:41

On zurb foundation\'s website at http://foundation.zurb.com/docs/reveal.php they listed some Options including

open: callback function that triggers \'before\' the

9条回答
  •  深忆病人
    2021-02-05 02:05

    Looking at Foundation 5 and found that the reveal library triggers open, opened, close, and closed events. Just attach a handler to the event you want.

    $('#myModal').on([event], handler)

    You can also pass the handlers via the settings argument. Check this out: https://github.com/zurb/foundation/blob/master/js/foundation/foundation.reveal.js#L92

提交回复
热议问题