Learn Bubble with 500+ tutorials, courses & AI Assistant ✨

Limited time launch offer get $80 off today

0 days 0 hours 0 minutes 0 seconds
SAVE $80 NOW
Planet No Code logo
Bubble.io CoachingFounder MentoringSponsorships
LoginLearn Bubble.io

OpenAI Loading Animation - Using Lottiefiles

In this Bubble tutorial we demonstrate how to improve your Bubble app's UX (user experience) by showing a loading animation while you wait for a response from the OpenAI API (ChatGPT). This tutorial uses a Lottie animation from Lottiefiles.

Join now $19/monthLearn more
Get 500+ tutorials, a No-Code AI Assistant, 4 premium courses, and everything you need to build faster!
OpenAI Loading Animation - Using Lottiefiles
Explore these topics...
Workflow
Plugins
Design
OpenAI
Lottie Animations

With just this tutorial learn...

Unlock the power of loading animations: Learn how to enhance your Bubble app's UI with Lottie animations during API calls!

Elevate your user experience: Discover how to implement a sleek progress bar while your Bubble app fetches data from OpenAI.

Master the art of seamless API integration: Transform your Bubble app's loading process with custom animations and improved user feedback.

With membership you'll...

Learn how to build a ChatGPT Clone, Custom CRM for your business & SaaS Marketing website with Webflow & AI.

Unlock 500+ Bubble tutorial videos with AI powered Q&A.

Debug your Bubble app instantly with our custom trained No Code AI Assistant.

Join now $19/month
Risk-free! 14-day money-back guarantee. Cancel anytime.

Adding a Loading Animation to Your Bubble App

In this Bubble tutorial video, I'm going to demonstrate how you can add in a loading animation while your Bubble app makes the API call to the OpenAI API. This is a great bit of UI and UX improvement that you can make to your app because sometimes users just get a bit confused when they click a button and it appears like nothing happens. Yes, Bubble puts a floating bar going across the top of the screen if you're doing a client-side workflow, but you can improve upon that so that your users know that they're getting something good and that they need to wait for it. This is all important when you're using OpenAI with Bubble.

Using Lottie Animations for Loading Indicators

I'm going to demonstrate in this tutorial how to do that with Lottie animations. Lottie files have become a popular format for animations on the web because they're lightweight. They're basically JSON files and they scale quite nicely too. So they've got a number of advantages over GIFs or other image animation files.

Adding the Lottie Plugin to Your Bubble App

To add in a Lottie animation, I need to add in a plugin. I'm just going to pick one of these. This one's got a lot of users, let's try that one and add in Lottie. Let's just make this 300 by 300. Obviously, you can adapt to the right size. For the Lottie file, if you want complete control over where you're hosting it, you can download the Lottie file and upload it to your Bubble storage. But in this example, I'm just going to pick one of these and link directly to it into one of my workspaces in Lottie.

Configuring the Lottie Animation

I think I need to click this one here of JSON. So then I paste that in there as the dynamic link and I'm going to preview my app to see if it loads in the Lottie animation correctly. Brilliant, yes it does.

Implementing the Loading Animation in Your Workflow

So how do I get it to show during my API call and hide the rest of the time? First of all, I've made sure that wherever I'm displaying my results, I have this unticked: "The element is visible on page load" and I tick "Collapse when hidden". Then on my Lottie element, now that I've added that in, I'm going to also say it is not visible on page load and it's collapsed when hidden.

Adding Workflow Steps for the Loading Animation

I need to add just a couple of steps or maybe three steps to my submit button. The first thing I'm going to do when the button's clicked is show my Lottie animation. I'm going to show that first. This is where the app makes a call to the OpenAI API, and so this is actually where the waiting occurs. Then, in this case, I'm using a custom state. I'm saving it as a custom state in order to display the results on my page. So I'm going to add in here "hide Lottie" because I know that it's completed the wait from OpenAI here, and then I'm going to show, in this case, I'm using a multi-line input. This just happens to be the element I'm using to display the reply from OpenAI.

Testing the Loading Animation

Let's preview and I'll go Twitter again and I'll say "What are the limitations of Bubble?" Okay, so I see my animation. I'm also getting the Bubble loading bar across the top, and then the animation gives way to the results.

Conclusion

So there you have it. That is how you can use a loading animation to improve the UI in your Bubble app. If you're learning Bubble, you need to check out our website Planet No Code where we've got hundreds of Bubble tutorial videos, some of which you cannot find on YouTube. We're just hoping to create the best resource for learning Bubble out there.

Table of contents

Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
Your No-Code Journey Starts Here

The best way to learn Bubble.io?

Build No Code Confidently

No more delays. With 30+ hours of expert content, you’ll have the insights needed to build effectively.

Find every solution in one place

No more searching across platforms for tutorials. Our bundle has everything you need, with 500+ videos covering every feature and technique.

Dive deep into every detail

Get beyond the basics with comprehensive, in-depth courses & no code tutorials that empower you to create a feature-rich, professional app.

Monthly
Yearly
Member
Accelerate your Bubble app to launch
$99 / month
$19/month/mo
Includes:
500+ tutorials
4 premium courses
Find the right tutorial with our custom trained AI
New tutorials added each week
Cancel anytime
14 day money back
Join now
Member
Accelerate your Bubble app to launch
$990 / year
$149/year/mo
Includes:
500+ tutorials
4 premium courses
Find the right tutorial with our custom trained AI
New tutorials added each week
Cancel anytime
14 day money back
Join now

Frequently Asked Questions

Find answers to common questions about our courses, tutorials & content.

Do I need any coding experience?

No. Our Beginner Essentials course and AI No-Code Coach are designed for total newcomers. You’ll learn Bubble.io step by step - no coding required.

How does the AI No-Code Coach work?

Simply type your question in plain English, and our AI taps into the entire video library to recommend the exact lessons you need. It’s like having a personal instructor on demand.

How long can I access the content?

As long as you’re subscribed! With our monthly subscription, you get unlimited access to all 500+ videos, our growing course library, and the AI No-Code Coach.

What courses are included

Your subscription includes:

  • Bubble Beginner Essentials – Get up and running fast.
  • Build a ChatGPT Clone – Integrate AI into your no-code apps.
  • Build Your SaaS Website with AI – Learn to create a scalable startup site.
  • Develop a Custom CRM App in Bubble - Learn database relationships with a CRM.

Plus, new tutorials every week!

What if I get stuck on a lesson?

The AI No-Code Coach is your first stop for instant answers. If you need deeper help, you can book 1:1 Bubble coaching for expert guidance.

Do you offer a money-back guarantee?

Yes! If you don’t see real progress within 14 days, let us know, and we’ll issue a full refund—no questions asked.

Can I cancel anytime?

Absolutely. Your subscription is month-to-month, and you can cancel anytime—no lock-ins, no hidden fees.

What if I want more than just tutorials & courses?

Absolutely. Your subscription is month-to-month, and you can cancel anytime—no lock-ins, no hidden fees.

If you’re serious about building a successful SaaS startup, check out Mastery—our intensive mentorship program. Mastery goes beyond Bubble.io development and includes:

  1. 1:1 mentorship to fast-track your progress
  2. Marketing strategies tailored for no-code founders‍
  3. Product management insights to scale your startup‍
  4. Personalized support from experienced founders

‍

Still have questions?

Reach out to our dedicated team.

Contact
Services
Search Bubble TutorialsBubble.io CoursesBook Bubble.io CoachingApply for Mastery
Latest Bubble tutorials
Rerank Text By MEANING With Cohere In Bubble.io Step by Step!
Unlock RAG Providers for NO CODE AI App Development TODAY!
Better Tables with Built-in Search and Sort By in Bubble.io
Partnerships
Flusk.eu
VectorShift
Comnoco
Plumb
Toddle
Whereby
Get started with no code
AI Powered No Code AppsNo Code Web ScrapingBubble.io Plugin tutorialsBubble API Connector tutorialsStudent & Teacher DiscountBest tools for no coders
Follow us
Youtube
X
LinkedIn
Planet No Code logo
In partnership with
Queen Mary University of London Logo
© 2024 Planet No Code. All rights reserved.
Privacy PolicyTerms of ServiceCookies SettingsContact Us