Skip to content

Appearance and Transition

Property NameDescriptionTypeDefault Value
disableTransitionDisable transition effectsbooleanfalse
themeNameTheme namestring-
customStyleCustom stylesobject-

disableTransition

In this version, we have added many transition effects, such as when the plugin is shown or hidden, when switching thumbnails, and when switching large images. These effects provide a good visual experience, making everything less abrupt. However, some users may want to disable transition effects due to device performance issues or a large number of images. Therefore, we provide the disableTransition configuration option. Simply set it to true to disable global transition effects.

themeName

The liquid glass effect in iOS 26 inspired us to bring this new UI style to the plugin. However, due to front-end technology limitations, the effect is far from the one in iOS. Additionally, we considered that not all users might like this style, so we made it into a theme named glass-theme. If you need it, simply pass it as a parameter to the themeName configuration option. If needed, we will create more themes for you to choose from in the future.

Click the image below to experience it now~

Note

Since filters and transition effects cannot coexist, you will notice that the filter suddenly appears after the transition effect ends. The author has not solved this issue yet, so you may consider whether to use this theme. If you decide to use it, we recommend disabling global transition effects while using this theme.

customStyle

Although we have tried to provide the best-looking default styles, they may still not match your website's style. Therefore, we offer some customization options for styles. If the following configurations still cannot meet your needs, you can also use the console to get the class names of the parts you want to modify and override them with custom CSS styles.

For custom styles, we use CSS variables, so the field names follow CSS variable conventions. We provide general main variables to control global styles. If you want to modify the overall background color, text color, etc., modifying the general main variables will be more convenient. If you want to make individual style adjustments to a specific part of the plugin, we also provide separate configuration options for them.

Usage

js
this.$hevueImgPreview({
  // Other parameters
  customStyle: {
    '--hevueimg-main-bg-color': 'rgba(255, 255, 255, 0.5)', // Change global background main color to semi-transparent white
    '--hevueimg-close-icon-text-color': 'blue' // Change close button icon color to blue
  }
})

🎨 General Main Variables

Field NameDefault ValueDescription
--hevueimg-main-bg-colorrgba(0, 0, 0, 0.3)Background color
--hevueimg-main-text-colorrgba(255, 255, 255, 0.7)Text color
--hevueimg-main-backdropblur(5px)Background filter
--hevueimg-main-bordernoneBorder style
--hevueimg-main-box-shadownoneShadow effect

🛡 Mask

Field NameDefault ValueDescription
--hevueimg-mask-bg-colorvar(--hevueimg-main-bg-color)Background color
--hevueimg-mask-backdropvar(--hevueimg-main-backdrop)Background filter

🧭 Top-right Close Button

Field NameDefault ValueDescription
--hevueimg-close-bg-colorvar(--hevueimg-main-bg-color)Background color
--hevueimg-close-backdropvar(--hevueimg-main-backdrop)Background filter
--hevueimg-close-bordervar(--hevueimg-main-border)Border style
--hevueimg-close-box-shadowvar(--hevueimg-main-box-shadow)Shadow effect
--hevueimg-close-icon-text-colorvar(--hevueimg-main-text-color)Icon/Text color

⬅️➡️ Side Arrows

Field NameDefault ValueDescription
--hevueimg-arrow-bg-colorvar(--hevueimg-main-bg-color)Background color
--hevueimg-arrow-backdropvar(--hevueimg-main-backdrop)Background filter
--hevueimg-arrow-bordervar(--hevueimg-main-border)Border style
--hevueimg-arrow-box-shadowvar(--hevueimg-main-box-shadow)Shadow effect
--hevueimg-arrow-text-colorvar(--hevueimg-main-text-color)Text/Icon color

⚙️ Control Bar

Field NameDefault ValueDescription
--hevueimg-controlbar-bg-colorvar(--hevueimg-main-bg-color)Background color
--hevueimg-controlbar-backdropvar(--hevueimg-main-backdrop)Background filter
--hevueimg-controlbar-bordervar(--hevueimg-main-border)Border style
--hevueimg-controlbar-box-shadowvar(--hevueimg-main-box-shadow)Shadow effect
--hevueimg-controlbar-text-colorvar(--hevueimg-main-text-color)Text color

🔢 Bottom Image Counter

Field NameDefault ValueDescription
--hevueimg-controlnum-bg-colorvar(--hevueimg-main-bg-color)Background color
--hevueimg-controlnum-backdropvar(--hevueimg-main-backdrop)Background filter
--hevueimg-controlnum-bordervar(--hevueimg-main-border)Border style
--hevueimg-controlnum-box-shadowvar(--hevueimg-main-box-shadow)Shadow effect
--hevueimg-controlnum-text-colorvar(--hevueimg-main-text-color)Text color

❓ Shortcut Help Popup

Field NameDefault ValueDescription
--hevueimg-help-bg-colorvar(--hevueimg-main-bg-color)Background color
--hevueimg-help-backdropvar(--hevueimg-main-backdrop)Background filter
--hevueimg-help-bordervar(--hevueimg-main-border)Border style
--hevueimg-help-box-shadowvar(--hevueimg-main-box-shadow)Shadow effect
--hevueimg-help-text-colorvar(--hevueimg-main-text-color)Text color

🔄 Custom Rotate Control Bar

Field NameDefault ValueDescription
--hevueimg-custom-rotate-bg-colorvar(--hevueimg-main-bg-color)Background color
--hevueimg-custom-rotate-backdropvar(--hevueimg-main-backdrop)Background filter
--hevueimg-custom-rotate-bordervar(--hevueimg-main-border)Border style
--hevueimg-custom-rotate-box-shadowvar(--hevueimg-main-box-shadow)Shadow effect
--hevueimg-custom-rotate-text-colorvar(--hevueimg-main-text-color)Button text color

🔄 Custom Rotate Angle Label

Field NameDefault ValueDescription
--hevueimg-custom-rotate-label-bg-colorvar(--hevueimg-main-bg-color)Background color
--hevueimg-custom-rotate-label-backdropvar(--hevueimg-main-backdrop)Background filter
--hevueimg-custom-rotate-label-bordervar(--hevueimg-main-border)Border style
--hevueimg-custom-rotate-label-box-shadowvar(--hevueimg-main-box-shadow)Shadow effect
--hevueimg-custom-rotate-label-text-colorvar(--hevueimg-main-text-color)Text color