Git Product home page Git Product logo

Comments (6)

g-popovic avatar g-popovic commented on June 12, 2024 4

I also received this flickering animation weirdness. It seems that downgrading from framer-motion v11 to v10 fixed the issue however. Just sharing this as a workaround until it's properly fixed.

As an aside - I noticed that using layout={true} prop in a framer motion div inside of the modal doesn't work at all, the smooth transitions are completely broken and non-existant. For example if you have a motion.div with a changing width in a modal and you give it the layout prop, normally the width change would be smooth and animated but when rendering in a modal it's instantaneous, ie broken.

from nextui.

kuri-sun avatar kuri-sun commented on June 12, 2024 1

Hello all! this one is fixed by #2426.

from nextui.

linear avatar linear commented on June 12, 2024

ENG-394 [BUG] - MODAL ANIMATION

from nextui.

arsallanShahab avatar arsallanShahab commented on June 12, 2024

encountered the same issue "errors.mjs:8 You are trying to animate y from "0px" to "var(--slide-enter))". 0px is not an animatable value - to enable this animation set 0px to a value animatable to var(--slide-enter)) via the style property."

from nextui.

rsemihkoca avatar rsemihkoca commented on June 12, 2024

errors.mjs:8 You are trying to animate y from "0px" to "var(--slide-enter))". 0px is not an animatable value - to enable this animation set 0px to a value animatable to var(--slide-enter)) via the style property.

same for me too

from nextui.

rsemihkoca avatar rsemihkoca commented on June 12, 2024

i have overriden motion props with this one and seems no error now

            motionProps={{
                variants: {
                    enter: {
                        y: 0,
                        opacity: 1,
                        transition: {
                            duration: 0.3,
                            ease: "easeOut",
                        },
                    },
                    exit: {
                        y: -20,
                        opacity: 0,
                        transition: {
                            duration: 0.2,
                            ease: "easeIn",
                        }
                    }
                }
            }}

from nextui.

Related Issues (20)

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.