Загрузка видео...

Не удалось загрузить видео

На главную

Lottie animation in loading.tsx

69,961 просмотров • 1 год назад •via X (Twitter)

Комментарии: 12

Фото профиля Chris Eagle
Chris Eagle1 год назад

You’ll need a loading component for your loading component if you’re using Lottie

Фото профиля SmartMove
SmartMove1 год назад

Winter move? Cozy up to your favorite TV & movies. #moving #newhome #internet #tv #streaming

Фото профиля Bob Obringer
Bob Obringer1 год назад

Except ouch

Фото профиля Alex Sidorenko
Alex Sidorenko1 год назад

Yep, it comes with a cost. Lighter than rendering gif, but still

Фото профиля Sam Finton
Sam Finton1 год назад

We do this, but find that even a simple lottie animation takes long enough to load that sometimes it doesn't even appear before the page switches. Was going to make it a server component but lottie doesn't seem to work server side. Might just use gif, any better ideas?

Фото профиля Alex Sidorenko
Alex Sidorenko1 год назад

Try gif, but they need time to load as well. I'd use Lottie animations only for something that predictably takes a long time to load (e.g. non-streaming AI response) and use CSS animations (spinners/skeletons) for everything else

Фото профиля Ali H
Ali H1 год назад

Neat loading component!

Фото профиля xiaoyao
xiaoyao1 год назад

cool

Фото профиля Simplr
Simplr1 год назад

Very Cool!

Фото профиля Hubert Ryan
Hubert Ryan1 год назад

Ow, nice. Now I follow you and I believe that we'll learn a lot.

Фото профиля Shadi || شادي 🟣⚫
Shadi || شادي 🟣⚫1 год назад

so cool 🔥🔥 Could you please share from where you obtained the dotlottie-player component?

Фото профиля Alex Sidorenko
Alex Sidorenko1 год назад

You can get it from Pick animation, click download, select "hand-off"

Похожие видео