Custom attribute requiring double click (featherlight lightbox)

前端 未结 2 1888
臣服心动
臣服心动 2021-01-22 15:56

So, here is the jsfiddle:

Here is the link to the plugin (featherlight lightbox)

The issue is that using the default targetAttr (which is data-featherligh

2条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-22 16:15

    featherlight() has a build-in click trigger so you just need to call the plugin directly:

    jQuery('.something_else').featherlight({
           targetAttr: 'data-single',                  
    }); 
    

    see: https://jsfiddle.net/5e9e2k6y/9/

提交回复
热议问题