img"; Image selector options Options passed to photo-swipe (http://photoswipe.com/) delay Type: number; Default...">Plugin options | Photo preview img"; Image selector options Options passed to photo-swipe (http://photoswipe.com/) delay Type: number; Default...">

Plugin options

Less than 1 minute

selector

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

Image selector

options

Options passed to photo-swipeopen in 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

  • Type: PhotoSwipeLocaleConfig

    interface PhotoSwipeLocaleData {
      /**
       * 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[];
    }
    
    interface PhotoSwipeLocaleConfig {
      [localePath: string]: PhotoSwipeLocaleData;
    }
    
  • Required: No

Locales config for photo-swipe plugin.

Built-in Supported Languages
  • Simplified Chinese (zh-CN)
  • Traditional Chinese (zh-TW)
  • English (United States) (en-US)
  • German (de-AT)
  • Russian (ru-RU)
  • Ukrainian (uk-UA)
  • Vietnamese (vi-VN)
  • Portuguese (Brazil) (pt-BR)
  • Polish (pl-PL)
  • French (fr-FR)
  • Spanish (es-ES)
  • Slovak (sk-SK)
  • Japanese (ja-JP)
  • Turkish (tr-TR)
  • Korean (ko-KR)
Loading...