组件 装载 机 加载器组件

加载器组件

一个基于材料设计原则的加载器组件,支持深色模式和响应效果,兼容 Tailwind CSS。

预览

HTML 代码

<div class="flex flex-col items-center justify-center h-screen bg-gray-100 dark:bg-gray-800">
    <h1 class="text-2xl font-bold mb-8 text-gray-800 dark:text-white">Loading...</h1>
    <div class="flex items-center justify-center space-x-4">
        <div class="loader w-16 h-16 border-4 border-blue-500 rounded-full border-t-transparent animate-spin"></div>
        <div class="loader w-16 h-16 border-4 border-green-500 rounded-full border-t-transparent animate-spin"></div>
        <div class="loader w-16 h-16 border-4 border-red-500 rounded-full border-t-transparent animate-spin"></div>
    </div>
    <div class="mt-8">
        <img class="w-24 h-24 rounded-full shadow-lg" src="https://picsum.photos/100/100" alt="Random Image" />
    </div>
    <div class="mt-2 text-sm text-gray-500 dark:text-gray-400">This is an example of a loading component with material design.</div>
</div>

<style>
    @tailwind base;
    @tailwind components;
    @tailwind utilities;

    .loader {
        @apply animate-spin;
    }

    @media (prefers-color-scheme: dark) {
        /* Dark mode styles */
        .loader {
            filter: brightness(1.2);
        }
    }
</style>

相关组件

加载器组件

一个3D设计的加载器组件,展示具有深度和参与感的加载动画,具有响应效果和深色主题支持,使用Tailwind CSS。

打开

拟物化加载器

具有新拟态风格和柔和色调的加载组件,专为电子商务设计。简单复杂,响应式,支持暗黑模式。不使用JavaScript。

打开

新拟态加载器

一个简单的新拟态加载器组件,具有单色调色方案,适用于投资组合,支持响应式设计和黑暗主题。

打开