---
title: "Discussion on \"How To Fix Framer Motion AnimatePresence Collapse Leaving a Gap\" | Hashnode"
description: "Discussion on \"How To Fix Framer Motion AnimatePresence Collapse Leaving a Gap\". Introduction\nYou added overflow: hidden and the collapse still looks wrong. The problem is not the motion component. It is the gap on your parent flex container.\nWhat is happening\nAnimatePresence keep"
url: "https://hashnode.com/posts/how-to-fix-framer-motion-animatepresence-collapse-leaving-a-gap/69a867593b896f7ad65b97c8"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How To Fix Framer Motion AnimatePresence Collapse Leaving a Gap](https://tigerabrodi.blog/how-to-fix-framer-motion-animatepresence-collapse-leaving-a-gap?utm_source=hashnode&utm_medium=feed)

Introduction You added overflow: hidden and the collapse still looks wrong. The problem is not the motion component. It is the gap on your parent flex container. What is happening AnimatePresence keep

Mar 4 · 2 min read · tigerabrodi.blog  
Read the article

## Written by

[Tiger Abrodi](https://hashnode.com/@tigerabrodi)

@tigerabrodi · Germany

  
[View profile](https://hashnode.com/@tigerabrodi)

Obsessed with crafting software.

Just a guy who loves to write code and watch anime.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
