vue-img-fade

Vue plugin that simplifies image transitions on load.
1,708 4
Install
npm install vue-img-fade
Latest Version:0.0.1-alpha.15
Vue:3
License:MIT
Last Updated:Feb 25, 2026
Links: GitHub  ·  npm
Maintainer: rumaan

Vue Image Fade

One liner image fade plugin that adds transitions to images on load.

Docs

https://vue-img-fade.vercel.app

Features

  • 🚥 Lightweight ~1kB gzip
  • ️️⛑️ Typescript + Vite
  • 🛠️ Simple One-Liner Directive
  • ✨ Web Animations API for customizing timelines

Installation and Usage

yarn add vue-img-fade

v-fade:

<script setup lang="ts">
import { vFade } from "vue-img-fade";
</script>
<template>
  <div>
    <img v-fade src="https://raw.githubusercontent.com/rumaan/vue-img-fade/HEAD/..." alt="..." width="100" height="100">
  </div>
</template>

v-fade-auto:

<script setup lang="ts">
import { vFadeAuto } from "vue-img-fade";
</script>
<template>
  <div v-fade-auto>
    <!-- width/height is required for v-fade-auto to work correctly -->
    <img src="https://raw.githubusercontent.com/rumaan/vue-img-fade/HEAD/..." alt="..." width="100" height="100">
    <img src="https://raw.githubusercontent.com/rumaan/vue-img-fade/HEAD/..." alt="..." width="100" height="100">
    <!-- ... -->
    <img src="https://raw.githubusercontent.com/rumaan/vue-img-fade/HEAD/..." alt="..." width="100" height="100">
  </div>
</template>

Custom Options

<template>
  <img v-fade="{ keyframes, animationOptions }" />
</template>

Demo

https://vue-img-fade.vercel.app/demo/using-v-fade.html

Development

Plugin

tsup is used to build the library.

yarn lib:build

Docs

yarn docs:dev
yarn docs:build

Related Packages

vite-plugin-vue2

Vite plugin for Vue2

1,474,659 618
@vue-vine/vite-plugin

Official Vite plugin for Vue Vine

95,680 1,442
vite-plugin-git-revision

Vite plugin that generates VERSION and COMMITHASH files during build based on a...

21,961 11
vite-plugin-resolve-extension-vue

A temporary workaround for issue No loader is configured for ".vue"

6,993 5
@koala/yibin-ui

宜宾大脑主题定制

4,077

Version History

Pre-releases (6)
Version Released Vue License
0.0.1-alpha.15 ^3.2.45 MIT
0.0.1-alpha.14 ^3.2.45 MIT
0.0.1-alpha.13 ^3.2.45 MIT
0.0.1-alpha.12 ^3.2.45 MIT
0.0.1-alpha.11 ^3.2.45 MIT