Git Product home page Git Product logo

vue-transitions's People

Contributors

dependabot[bot] avatar fro1d avatar morevm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

vue-transitions's Issues

Transitions do not work if the "delay" prop is greater than "duration"

Actual behavior

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)

Expected behavior

Play transition on appear

Steps to reproduce

  1. Use Vue 3
  2. Add transition
  3. add appear

Environment

  • Device: Desktop
  • OS: Windows 11
  • Browser: Chrome 111

Additional context

<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?

Possible solution

No response

Failed to resolve import @morev/vue-transitions/styles using Nuxt 3

Actual behavior

When building, throws error

Failed to resolve import "@morev/vue-transitions/styles" from "virtual:nuxt:/app/.nuxt/css.mjs". Does the file exist?

Expected behavior

Should've resolved the import

Steps to reproduce

  • Added the package with bun add @morev/vue-transitions/nuxt
  • Added into Nuxt's modules
// nuxt.config.ts
modules: [
    ...
    "@morev/vue-transitions/nuxt",
  ],
  • Use it is any of view files e.g Test.vue
<TransitionSlide :offset="[-16, 0]">
    content
</TransitionSlide>

Environment

  • Device: 2019 16" MBP (Intel)
  • OS: Sonoma 14.2

Additional context

No response

Possible solution

Possibly updating the package to have the styles imported properly.

Using along with Headless UI modal

Question

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

Could not find a declaration file for module

Actual behavior

Importing VueTransitions shows TS error.

Expected behavior

Importing should be fine.

Steps to reproduce

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)

Environment

  • OS: Windows 11
  • vue 3.3.11
  • typescript 5.3.0
  • vite 5.0.10

Additional context

No response

Possible solution

No response

TransitionExpand: no collapse transition when in bottom

Actual behavior

TransitionExpand

Expected behavior

Expand from bottom to to when element postion in bottom

Steps to reproduce

<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>

Environment

  • Device:Desktop
  • OS:Windows 11
  • Browser:Chrome 116

Additional context

No response

Possible solution

No response

Using class with tag prop

Question

Can i use tag prop with class like this?

<transition-fade group tag="ul" class="flex">
   <a>test</a>
   <component/>
</transition-fade>

Plans for v4

  • Resolve #251
  • Fix type generation for Nuxt 3
  • Regenerate Nuxt transitions if node_modules folder is updated while dev server is running
  • Support for prefers-reduced-motion
  • Find a way to get rid of postinstall hook since it does not run in Bun and is generally a potential point of failure
  • Find a way to run transition-group elements consequently
  • Write documentation using specialized tools
  • Add additional preset pages in addition to the current playgroud

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.