Skip to content

Next Js Simple Slide up and Down Animation, Exit not working for me. Next JS 13 #2219

Answered by Inzendis
Inzendis asked this question in Q&A
Discussion options

You must be logged in to vote
if (!modalOpen)
    return (
      <AnimatePresence>
        {isCheckComplete && (
          <motion.div
            key="box2"
            initial={{ y: "50%", opacity: 0 }}
            animate={{ y: 0, opacity: 1 }}
            transition={{ duration: 0.3, ease: "easeInOut" }}
            className="fixed bottom-0"
          >
            <button
              className="text-lg rounded-t-md createAnAccount-bg px-2 h-8 flex flex-row text-white border-white border-x-4 border-t-4 border-double"
              onClick={() => setModalOpen(true)}
            >
              <a className="text-base">Install App</a>
              <svg
                xmlns="http://www.w3.org/2000/svg"
         …

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@Inzendis
Comment options

@Basovs
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by Inzendis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants