# Basic expand / collapse element?

**URL:** <https://forum.ionicframework.com/t/basic-expand-collapse-element/202277>\
**Category:** Ionic Vue\
**Created:** [January 6, 2021, 3:12am UTC](https://forum.ionicframework.com/t/basic-expand-collapse-element/202277 "2021-01-06T03:12:48Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![pauln](https://avatars.discourse-cdn.com/v4/letter/p/c0e974/32.png) [@pauln](https://forum.ionicframework.com/u/pauln)\
**Post date:** [January 6, 2021, 3:12am UTC](https://forum.ionicframework.com/t/basic-expand-collapse-element/202277/1 "2021-01-06T03:12:48Z")

</div>

Anyone know of a sample or recipe for a basic expand / collapse or accordion component with Ionic Vue?

---

<div class="post-metadata">

**Author:** ![treigh](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/treigh/32/131637_2.png) [@treigh](https://forum.ionicframework.com/u/treigh)\
**Post date:** [January 7, 2021, 3:26pm UTC](https://forum.ionicframework.com/t/basic-expand-collapse-element/202277/2 "2021-01-07T15:26:03Z")

</div>

Here’s a video that might just help you:

[![](https://global.discourse-cdn.com/ionicframework/original/3X/1/d/1d8fcd765f60f048bca2c13189739161fcc3b74c.jpeg "Ionic VueJS - Creating an Animated Accordion List Component in VueJS with A Little of IonicFramework") ](https://www.youtube.com/watch?v=40W4ojKlSYE)

---

<div class="post-metadata">

**Author:** ![pauln](https://avatars.discourse-cdn.com/v4/letter/p/c0e974/32.png) [@pauln](https://forum.ionicframework.com/u/pauln)\
**Post date:** [January 8, 2021, 12:56am UTC](https://forum.ionicframework.com/t/basic-expand-collapse-element/202277/3 "2021-01-08T00:56:01Z")

</div>

Looks like a perfect jumping off point.  
Much appreciated!

---

<div class="post-metadata">

**Author:** ![aaronksaunders](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/aaronksaunders/32/13729_2.png) [@aaronksaunders](https://forum.ionicframework.com/u/aaronksaunders)\
**Post date:** [January 8, 2021, 7:24am UTC](https://forum.ionicframework.com/t/basic-expand-collapse-element/202277/4 "2021-01-08T07:24:09Z")

</div>

here is a pure html5 and css solution -

[![](https://global.discourse-cdn.com/ionicframework/original/3X/d/9/d993ee0e053503f88a7e4eae00a200b60c20303f.jpeg "Ionic VueJS - Creating an Animated Accordion List Component in HTML & CSS") ](https://www.youtube.com/watch?v=4BGfvKpP-b0)

---

<div class="post-metadata">

**Author:** ![treigh](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/treigh/32/131637_2.png) [@treigh](https://forum.ionicframework.com/u/treigh)\
**Post date:** [January 8, 2021, 3:39pm UTC](https://forum.ionicframework.com/t/basic-expand-collapse-element/202277/5 "2021-01-08T15:39:10Z")

</div>

Super! Thanks for the good work.

---

<div class="post-metadata">

**Author:** ![pauln](https://avatars.discourse-cdn.com/v4/letter/p/c0e974/32.png) [@pauln](https://forum.ionicframework.com/u/pauln)\
**Post date:** [January 8, 2021, 7:07pm UTC](https://forum.ionicframework.com/t/basic-expand-collapse-element/202277/6 "2021-01-08T19:07:20Z")

</div>

Ah, awesome stuff! Nice to have a cleaner solution as well as the option to use the animation library. I imagine the animation library might unlock some more possible effects than just css alone, or at least maybe make them a little cleaner for something less trivial?
