79137267

Date: 2024-10-29 12:48:34
Score: 6.5 🚩
Natty:
Report link

Im having the same issue, te animations seem fine, but after change windows dor a while, its overlaps and get ugly. Mode="popLayout" doesnt works for me :( Any idea )?

<AnimatePresence mode="popLayout" initial={false}>
        <motion.div
          key={index}
          initial={{ y: cycle === 1 ? 80 : -80, opacity: 0 }}
          animate={{ y: 0, opacity: 1 }}
          exit={{ y: cycle === 1 ? -80 : 80, opacity: 0 }}
          transition={{
            type: "spring",
            stiffness: 150,
            duration: 0.6,
          }}
          style={{ position: "absolute", width: "800px" }}
        >
          <Text variant="h1" color="primary.orange">
            {words[index]}
          </Text>
        </motion.div>
      </AnimatePresence>
Reasons:
  • Blacklisted phrase (1): doesnt work
  • Blacklisted phrase (1): :(
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): having the same issue
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Juan Toledo