DEV Community

Freecodez
Freecodez

Posted on

1

Amazing css loaders

Hey there, You are most welcome to this article. I hope you will enjoy this article. If you like this article then please share this article with your friends and colleagues. If you have any questions or suggestions regarding this article then please comment down below.

Amazing css loaders

Amazing css loaders

For full source code visit : https://freecodez.com/post/idvwy49

<!-- https://freecodez.com -->
<main>
    <svg class="pl1" viewBox="0 0 128 128" width="128px" height="128px">
        <defs>
            <linearGradient id="pl-grad" x1="0" y1="0" x2="1" y2="1">
                <stop offset="0%" stop-color="#000" />
                <stop offset="100%" stop-color="#fff" />
            </linearGradient>
            <mask id="pl-mask">
                <rect x="0" y="0" width="128" height="128" fill="url(#pl-grad)" />
            </mask>
        </defs>
        <g fill="var(--primary)">
            <g class="pl1__g">
                <g transform="translate(20,20) rotate(0,44,44)">
                    <g class="pl1__rect-g">
                        <rect class="pl1__rect" rx="8" ry="8" width="40" height="40" />
                        <rect class="pl1__rect" rx="8" ry="8" width="40" height="40" transform="translate(0,48)" />
                    </g>
                    <g class="pl1__rect-g" transform="rotate(180,44,44)">
                        <rect class="pl1__rect" rx="8" ry="8" width="40" height="40" />
                        <rect class="pl1__rect" rx="8" ry="8" width="40" height="40" transform="translate(0,48)" />
                    </g>
                </g>
            </g>
        </g>
        <g fill="hsl(343,90%,50%)" mask="url(#pl-mask)">
            <g class="pl1__g">
                <g transform="translate(20,20) rotate(0,44,44)">
                    <g class="pl1__rect-g">
                        <rect class="pl1__rect" rx="8" ry="8" width="40" height="40" />
                        <rect class="pl1__rect" rx="8" ry="8" width="40" height="40" transform="translate(0,48)" />
                    </g>
                    <g class="pl1__rect-g" transform="rotate(180,44,44)">
                        <rect class="pl1__rect" rx="8" ry="8" width="40" height="40" />
                        <rect class="pl1__rect" rx="8" ry="8" width="40" height="40" transform="translate(0,48)" />
                    </g>
                </g>
            </g>
        </g>
    </svg>
    <svg class="pl2" viewBox="0 0 128 128" width="128px" height="128px">
        <g fill="var(--primary)">
            <g class="pl2__rect-g">
                <rect class="pl2__rect" rx="8" ry="8" x="0" y="128" width="40" height="24" transform="rotate(180)" />
            </g>
            <g class="pl2__rect-g">
                <rect class="pl2__rect" rx="8" ry="8" x="44" y="128" width="40" height="24" transform="rotate(180)" />
            </g>
            <g class="pl2__rect-g">
                <rect class="pl2__rect" rx="8" ry="8" x="88" y="128" width="40" height="24" transform="rotate(180)" />
            </g>
        </g>
        <g fill="hsl(283,90%,50%)" mask="url(#pl-mask)">
            <g class="pl2__rect-g">
                <rect class="pl2__rect" rx="8" ry="8" x="0" y="128" width="40" height="24" transform="rotate(180)" />
            </g>
            <g class="pl2__rect-g">
                <rect class="pl2__rect" rx="8" ry="8" x="44" y="128" width="40" height="24" transform="rotate(180)" />
            </g>
            <g class="pl2__rect-g">
                <rect class="pl2__rect" rx="8" ry="8" x="88" y="128" width="40" height="24" transform="rotate(180)" />
            </g>
        </g>
    </svg>
    <svg class="pl3" viewBox="0 0 128 128" width="128px" height="128px">
        <g fill="var(--primary)">
            <rect class="pl3__rect" rx="8" ry="8" width="64" height="64" transform="translate(64,0)" />
            <g class="pl3__rect-g" transform="scale(-1,-1)">
                <rect class="pl3__rect" rx="8" ry="8" width="64" height="64" transform="translate(64,0)" />
            </g>
        </g>
        <g fill="hsl(163,90%,50%)" mask="url(#pl-mask)">
            <rect class="pl3__rect" rx="8" ry="8" width="64" height="64" transform="translate(64,0)" />
            <g class="pl3__rect-g" transform="scale(-1,-1)">
                <rect class="pl3__rect" rx="8" ry="8" width="64" height="64" transform="translate(64,0)" />
            </g>
        </g>
    </svg>
</main>
Enter fullscreen mode Exit fullscreen mode

Source Code : https://freecodez.com/post/idvwy49

For more such articles visit : https://freecodez.com

Sentry blog image

How I fixed 20 seconds of lag for every user in just 20 minutes.

Our AI agent was running 10-20 seconds slower than it should, impacting both our own developers and our early adopters. See how I used Sentry Profiling to fix it in record time.

Read more

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more