The standard format for loading is component class loading, accompanied by modifier class loading-spinner to show the
spinner animation. The size of the spinner can be adjusted using the responsive classes loading-{size} where {size}
can be xs, sm, or lg.
Below is the example illustrating the integration of loading animations within cards.
Card title
This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.
<divclass="card group max-w-sm hover:shadow">
<figure>
<imgsrc="https://cdn.flyonui.com/fy-assets/components/carousel/image-7.png"alt="Album"class="transition-transform duration-500 group-hover:scale-105" />
</figure>
<divclass="card-body">
<h5class="card-title">Card title</h5>
<p> This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer. </p>
</div>
<divclass="card-footer">
<smallclass="text-base-content/50">Last updated 3 mins ago</small>
</div>
<divclass="bg-base-100/50 absolute start-0 top-0 size-full"></div>
<divclass="absolute start-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 transform">
<spanclass="loading loading-spinner loading-lg text-primary"></span>
</div>
</div>