# Adding loading spinners to a bubble app

**URL:** <https://forum.bubble.io/t/adding-loading-spinners-to-a-bubble-app/128314>\
**Category:** Need help\
**Created:** [January 1, 2021, 4:38am UTC](https://forum.bubble.io/t/adding-loading-spinners-to-a-bubble-app/128314 "2021-01-01T04:38:15Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![253digital](https://avatars.discourse-cdn.com/v4/letter/2/8edcca/32.png) [@253digital](https://forum.bubble.io/u/253digital)\
**Post date:** [January 1, 2021, 4:38am UTC](https://forum.bubble.io/t/adding-loading-spinners-to-a-bubble-app/128314/1 "2021-01-01T04:38:15Z")

</div>

Hi guys, does anyone know of a trick (maybe some CSS or plugin) which we can use to automatically add loading spinners across our Bubble app and on buttons any time a workflow takes more than a few seconds to load?

Or is this something that we need to add manually, by placing loading spinners manually on all the buttons and using custom states at the beginning and end of workflows etc.

Loading spinners are a basic way to improve the UX on an app, letting users know what’s going on so if we can find a simple way to do this across an entire app, I think it will be helpful for other Bubble users in the community.

Any help is much appreciated, thanks guys!

---

<div class="post-metadata">

**Author:** ![SerPounce](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/serpounce/32/62068_2.png) [@SerPounce](https://forum.bubble.io/u/SerPounce)\
**Post date:** [January 1, 2021, 5:05am UTC](https://forum.bubble.io/t/adding-loading-spinners-to-a-bubble-app/128314/2 "2021-01-01T05:05:32Z")

</div>

Just add an icon via workflow and rotate it.

---

<div class="post-metadata">

**Author:** ![253digital](https://avatars.discourse-cdn.com/v4/letter/2/8edcca/32.png) [@253digital](https://forum.bubble.io/u/253digital)\
**Post date:** [January 1, 2021, 1:06pm UTC](https://forum.bubble.io/t/adding-loading-spinners-to-a-bubble-app/128314/3 "2021-01-01T13:06:14Z")

</div>

That’s one option but we would need to put them manually on all of the buttons. I wasn’t sure if there was a simple HTML header we could place on the page to accomplish the same goal in a 15 minutes vs. 6 or 7 hours going through all the buttons in the app

---

<div class="post-metadata">

**Author:** ![johnny](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/johnny/32/203020_2.png) [@johnny](https://forum.bubble.io/u/johnny)\
**Post date:** [January 1, 2021, 11:03pm UTC](https://forum.bubble.io/t/adding-loading-spinners-to-a-bubble-app/128314/4 "2021-01-01T23:03:18Z")

</div>

You can you a HTML/CSS spinner. I like [SpinKit | Simple CSS Spinners](https://tobiasahlin.com/spinkit/), just paste the HTML into the HTML element, then create inline CSS for the CSS portion.

---

<div class="post-metadata">

**Author:** ![ulrich\_00132](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/ulrich_00132/32/107834_2.png) [@ulrich\_00132](https://forum.bubble.io/u/ulrich_00132)\
**Post date:** [January 31, 2021, 12:29pm UTC](https://forum.bubble.io/t/adding-loading-spinners-to-a-bubble-app/128314/5 "2021-01-31T12:29:21Z")

</div>

Hi @johnny

Thanks for this. Can you please give more details for the newbies ?

How do you create inline CSS for the CSS portion ?

Thanks.  
Ulrich

---

<div class="post-metadata">

**Author:** ![ryanck](https://avatars.discourse-cdn.com/v4/letter/r/13edae/32.png) [@ryanck](https://forum.bubble.io/u/ryanck)\
**Post date:** [January 31, 2021, 12:31pm UTC](https://forum.bubble.io/t/adding-loading-spinners-to-a-bubble-app/128314/6 "2021-01-31T12:31:16Z")

</div>

Nice one. Didn´t know that.

How do you create the inline CSS?

---

<div class="post-metadata">

**Author:** ![johnny](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/johnny/32/203020_2.png) [@johnny](https://forum.bubble.io/u/johnny)\
**Post date:** [January 31, 2021, 6:55pm UTC](https://forum.bubble.io/t/adding-loading-spinners-to-a-bubble-app/128314/7 "2021-01-31T18:55:46Z")

</div>

There is an HTML element on the editor.

Creating inline CSS required using the `<style> and </style>` tags

---

<div class="post-metadata">

**Author:** ![arensbpa](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/arensbpa/32/192304_2.png) [@arensbpa](https://forum.bubble.io/u/arensbpa)\
**Post date:** [February 2, 2021, 12:50am UTC](https://forum.bubble.io/t/adding-loading-spinners-to-a-bubble-app/128314/8 "2021-02-02T00:50:50Z")

</div>

This is what my element inline looks like, the html in the `<div>` tag and the css in the `<style>` tag were pulled directly from the resource [Johnny suggested earlier](http://forum.bubble.io/t/adding-loading-spinners-to-a-bubble-app/128314/4).

 ![spinner](https://us1.discourse-cdn.com/bubble/original/3X/e/6/e60644b1642cdc1aa6cebb234b8fc19b889f88ed.jpeg)

---

<div class="post-metadata">

**Author:** ![arensbpa](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/arensbpa/32/192304_2.png) [@arensbpa](https://forum.bubble.io/u/arensbpa)\
**Post date:** [February 2, 2021, 12:59am UTC](https://forum.bubble.io/t/adding-loading-spinners-to-a-bubble-app/128314/9 "2021-02-02T00:59:38Z")

</div>

Regarding the workflow however, It takes 3 or 4 seconds before the spinner pops up. I set a custom state (yes/no) to “yes” when the button is clicked which triggers the visibility of the spinner. Anyone know a better way to do this so that it appears immediately?

---

<div class="post-metadata">

**Author:** ![johnny](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/johnny/32/203020_2.png) [@johnny](https://forum.bubble.io/u/johnny)\
**Post date:** [February 2, 2021, 1:38am UTC](https://forum.bubble.io/t/adding-loading-spinners-to-a-bubble-app/128314/10 "2021-02-02T01:38:18Z")

</div>

I would recommend just adding it to a popup, then under the “On page load” action show the popup, then create a “When true” workflow for “Page load (entried) is “yes”” hide the popup

---

<div class="post-metadata">

**Author:** ![arensbpa](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/arensbpa/32/192304_2.png) [@arensbpa](https://forum.bubble.io/u/arensbpa)\
**Post date:** [February 2, 2021, 10:51pm UTC](https://forum.bubble.io/t/adding-loading-spinners-to-a-bubble-app/128314/11 "2021-02-02T22:51:37Z")

</div>

Thanks Johnny i’ll give it a try!

---

<div class="post-metadata">

**Author:** ![underhill.dan](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/underhill.dan/32/197792_2.png) [@underhill.dan](https://forum.bubble.io/u/underhill.dan)\
**Post date:** [February 3, 2021, 1:02am UTC](https://forum.bubble.io/t/adding-loading-spinners-to-a-bubble-app/128314/12 "2021-02-03T01:02:43Z")

</div>

I’ve been using Zeroqode’s Loading Spinner plugin and I’ve been super happy with it…

> **[Loading Spinner Plugin for Bubble, by Zeroqode](https://bubble.io/plugin/loading-spinner-1504534427287x204075407990849540)**
>
> Loading Spinner Plugin page on Bubble, by Zeroqode. Add Loading Spinner in one click to your app. Bubble lets you build web apps without any code.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [March 12, 2021, 4:38am UTC](https://forum.bubble.io/t/adding-loading-spinners-to-a-bubble-app/128314/13 "2021-03-12T04:38:16Z")

</div>

Closed on March 12, 2021, 4:38am UTC

This topic was automatically closed after 70 days. New replies are no longer allowed.
