morevm / vue-transitions Goto Github PK
View Code? Open in Web Editor NEWInterface transitions library for Vue 2/3
Home Page: https://morevm.github.io/vue-transitions/
License: MIT License
Interface transitions library for Vue 2/3
Home Page: https://morevm.github.io/vue-transitions/
License: MIT License
The Transitions do not play, the component gets rendered 100 ms after all the other components but the transition does not get played (component has attribute appear
)
Play transition on appear
<script setup>
import { TransitionFade } from "@morev/vue-transitions";
</script>
<template>
<transition-fade appear :delay="5000">
<img
class="logo"
src="@/assets/logos/java-edition.webp"
alt="Minecraft: Java Edition"
/>
</transition-fade>
</template>
Question: Is it required to call app.use even when using the components via import?
No response
When building, throws error
Failed to resolve import "@morev/vue-transitions/styles" from "virtual:nuxt:/app/.nuxt/css.mjs". Does the file exist?
Should've resolved the import
bun add @morev/vue-transitions/nuxt
// nuxt.config.ts
modules: [
...
"@morev/vue-transitions/nuxt",
],
<TransitionSlide :offset="[-16, 0]">
content
</TransitionSlide>
No response
Possibly updating the package to have the styles imported properly.
Hey, did anyone get it work with the modal component from the Headless UI? I use bulit-in transitions with all my custom components as well as with some Headless UI components like dropdown. In all those cases it does work fine. But the modal component from Headless UI is a bit different and it seems to work only with Headless UI transition components (TransitionRoot
etc.), whereas built-in transitions make no difference and the modal pops up immediately. Is there any way to
Importing VueTransitions shows TS error.
Importing should be fine.
main.ts:
import './assets/main.css';
import { createPinia } from 'pinia';
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate';
import { createApp } from 'vue';
import VueTransitions from '@morev/vue-transitions';
import '@morev/vue-transitions/styles';
import App from './App.vue';
import router from './router';
const app = createApp(App);
const pinia = createPinia();
pinia.use(piniaPluginPersistedstate);
app.use(pinia);
app.use(router);
app.use(VueTransitions);
app.mount('#app');
Error:
Could not find a declaration file for module '@morev/vue-transitions'. '.../node_modules/.pnpm/@[email protected][email protected]/node_modules/@morev/vue-transitions/dist/vue-transitions.es.js' implicitly has an 'any' type.
There are types at '.../node_modules/@morev/vue-transitions/types/index.d.ts', but this result could not be resolved when respecting package.json "exports". The '@morev/vue-transitions' library may need to update its package.json or typings.ts(7016)
No response
No response
Expand from bottom to to when element postion in bottom
<header class="fixed top-0 w-full">
<div>Content</div>
<transition-expand>
<div v-show="currentNavPanel"></div>
</transition-expand>
</footer>
<footer class="fixed bottom-0 w-full">
<transition-expand>
<div v-show="currentNavPanel"></div>
</transition-expand>
<div>Content</div>
</footer>
No response
No response
Can i use tag prop with class like this?
<transition-fade group tag="ul" class="flex">
<a>test</a>
<component/>
</transition-fade>
node_modules
folder is updated while dev server is runningtransition-group
elements consequentlyA declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.