Plugin options

Mr.Hope ... 2020-10-11 Less than 1 minute

# selector

  • Type: string
  • Default: '.theme-default-content :not(a) > img'

Image selector

# options

Options passed to photo-swipe (opens new window)

# delay

  • Type: number
  • Default: 500

The delay of operating dom, in ms.

Tips

If the theme you are using has a switching animation, it is recommended to configure this option to Switch animation duration + 200.

# locales

interface PhowoSwipeLocaleData {
  /**
   * Close button label text
   */
  close: string;

  /**
   * Full screen button label text
   */
  fullscreen: string;

  /**
   * Share button label text
   */
  share: string;

  /**
   * Zoom button label text
   */
  zoom: string;

  /**
   * Previous image button label text
   */
  prev: string;

  /**
   * Next image button label text
   */
  next: string;

  /**
   * Share button config
   */
  buttons: PhotoSwipeDefaultUI.ShareButtonData[];
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36

Locales config.

Last update: January 20, 2022 16:45
Contributors: Mr.Hope