正在加载视频...

视频加载失败

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"

相关视频