# \[WORKING\] Swipe tabs and cards beneath simultaneously

**URL:** <https://forum.bubble.io/t/working-swipe-tabs-and-cards-beneath-simultaneously/34451>\
**Category:** Implemented\
**Created:** [July 27, 2018, 4:53pm UTC](https://forum.bubble.io/t/working-swipe-tabs-and-cards-beneath-simultaneously/34451 "2018-07-27T16:53:50Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![patricia](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/patricia/32/57583_2.png) [@patricia](https://forum.bubble.io/u/patricia)\
**Post date:** [July 27, 2018, 4:53pm UTC](https://forum.bubble.io/t/working-swipe-tabs-and-cards-beneath-simultaneously/34451/1 "2018-07-27T16:53:50Z")

</div>

**UPDATE: This is now responsive**

There are TWO options both work with touch on a mobile and with the mouse/trackpad on a desktop/laptop and require no paid plugins - totally FREE solution.

1. Option 1 allows a user to swipe the card left or right and the tabs move accordingly. The tabs section is simply a horizontal scrolling RG so it moves very fast on swipe and does not select the next card but you can tap a button to get the card.

2. Option 2 allows the user to swipe either the card, or the tabs, left or right and they both move one step at a time. This seems more intuitive and operates like other mobile swipes I’ve used.

It bubble’s own, free, Draggable Elements plugin and ZeroQode’s free CSS Tools. The CSS Tools plugin is used to hide the scroll bar on the RG of tabs (not hidden on FireFox). The Draggable elements are used to allow the user to swipe the cards and the tabs.

This widget reads its tabs from a db table so you can have as many, or as few, tabs as you wish, dynamically. I have only set up 12 buttons (100 px each) which covers a standard 1200px screen but if you want more buttons or smaller buttons it should be easy to change.

 ![20](https://us1.discourse-cdn.com/bubble/original/3X/9/0/90948f88fe8bee6ca2e7b718103f08c8d247331d.png)

**OPTION ONE**  
The editor view is at: [swipe-to-del | Bubble Editor](https://bubble.io/page?type=page&name=card_tab_swipe_res&id=swipe-to-del&tab=tabs-1)

The live view is at: [https://swipe-to-del.bubbleapps.io/version-test/card\_tab\_swipe](https://swipe-to-del.bubbleapps.io/version-test/card_tab_swipe)

**OPTION TWO**  
The editor view is at: [swipe-to-del | Bubble Editor](https://bubble.io/page?https://bubble.io/page?type=page&name=card_tab_swipe_both&id=swipe-to-del&tab=tabs-1)

The live view is at: [https://swipe-to-del.bubbleapps.io/version-test/card\_tab\_swipe\_both](https://swipe-to-del.bubbleapps.io/version-test/card_tab_swipe_both)

I believe an enhanced version can be built using ZeroQode’s Touch and Mouse Events Detection plugin which I plan to attempt as soon as I have time.

Hope this helps somebody.

---

<div class="post-metadata">

**Author:** ![scottb50](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/scottb50/32/9334_2.png) [@scottb50](https://forum.bubble.io/u/scottb50)\
**Post date:** [August 1, 2018, 7:28pm UTC](https://forum.bubble.io/t/working-swipe-tabs-and-cards-beneath-simultaneously/34451/2 "2018-08-01T19:28:30Z")

</div>

> [@patricia](#):
>
> Hope this helps somebody.

It does! Thank you.

---

<div class="post-metadata">

**Author:** ![patricia](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/patricia/32/57583_2.png) [@patricia](https://forum.bubble.io/u/patricia)\
**Post date:** [August 1, 2018, 7:41pm UTC](https://forum.bubble.io/t/working-swipe-tabs-and-cards-beneath-simultaneously/34451/3 "2018-08-01T19:41:15Z")

</div>

I’m working on taking it a step further @scottb50 - I want the tabs to swipe left/right one step at a time, the same way as the card below. I hope to have it ready for tomorrow. I’ll ping you here when I post it and you can check if you prefer that UI. I want this approach because on a mobile horizontal RGs are too ‘loose’ and float along very fast.

---

<div class="post-metadata">

**Author:** ![patricia](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/patricia/32/57583_2.png) [@patricia](https://forum.bubble.io/u/patricia)\
**Post date:** [August 2, 2018, 2:10pm UTC](https://forum.bubble.io/t/working-swipe-tabs-and-cards-beneath-simultaneously/34451/4 "2018-08-02T14:10:04Z")

</div>

The new enhanced version of this feature/widget is now available at the links in the main post.

---

<div class="post-metadata">

**Author:** ![scottb50](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/scottb50/32/9334_2.png) [@scottb50](https://forum.bubble.io/u/scottb50)\
**Post date:** [August 2, 2018, 3:16pm UTC](https://forum.bubble.io/t/working-swipe-tabs-and-cards-beneath-simultaneously/34451/5 "2018-08-02T15:16:34Z")

</div>

It looks great…and I’m much smarter about fruit!

---

<div class="post-metadata">

**Author:** ![patricia](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/patricia/32/57583_2.png) [@patricia](https://forum.bubble.io/u/patricia)\
**Post date:** [August 2, 2018, 3:20pm UTC](https://forum.bubble.io/t/working-swipe-tabs-and-cards-beneath-simultaneously/34451/6 "2018-08-02T15:20:19Z")

</div>

It’s only aout fruit @scottb50 because I’m on a diet and can’t eat it so I’m thinking of nothing else 🥝🍎🍍🍇

---

<div class="post-metadata">

**Author:** ![InCommon](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/incommon/32/15504_2.png) [@InCommon](https://forum.bubble.io/u/InCommon)\
**Post date:** [August 5, 2018, 10:56pm UTC](https://forum.bubble.io/t/working-swipe-tabs-and-cards-beneath-simultaneously/34451/7 "2018-08-05T22:56:06Z")

</div>

This is exactly what I need.

---

<div class="post-metadata">

**Author:** ![patricia](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/patricia/32/57583_2.png) [@patricia](https://forum.bubble.io/u/patricia)\
**Post date:** [August 6, 2018, 9:03am UTC](https://forum.bubble.io/t/working-swipe-tabs-and-cards-beneath-simultaneously/34451/8 "2018-08-06T09:03:20Z")

</div>

Love your icon and glad to be of help @InCommon

---

<div class="post-metadata">

**Author:** ![boston85719](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/boston85719/32/77286_2.png) [@boston85719](https://forum.bubble.io/u/boston85719)\
**Post date:** [April 8, 2019, 7:00pm UTC](https://forum.bubble.io/t/working-swipe-tabs-and-cards-beneath-simultaneously/34451/9 "2019-04-08T19:00:34Z")

</div>

I did a swipe action with two drop areas, and two different drag/drop groups that are contained in a repeating group.

The use case was for a chat application and the ability to slide left to view edit buttons or to slide right to close edit buttons and revert to original view of the conversation details.

Below is a post I showed some screen shots of the set up.

[Drag and Drop for Swipe](http://forum.bubble.io/t/drag-and-drop-cant-move-droppable-group/53912)

In the post I also am seeking help on a few issues, specifically moving an element back to its original position so I can make the swipe more fluid.

I imagine this could be used to slide left or right on photos as a slide show if you use a repeating group set to 1 cell and create a workflow that on drop in drop area that the repeating group next or previous entry is displayed.

Any help or ideas would be very welcome on how to make the swipe better.

Cheers
