SVG loading infinite

Size
2,936 Kb
Views
24,288

How do I make an svg loading infinite?

What is a svg loading infinite? How do you make a svg loading infinite? This script and codes were developed by Harley Santos Garzón on 15 October 2022, Saturday.

SVG loading infinite Previews

SVG loading infinite - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>SVG loading infinite</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body>
<div class="loading_template"> <svg class="loading_svg" width="300px" height="200px" viewBox="0 0 187.3 93.7" preserveAspectRatio="xMidYMid meet" style="left: 50%; top: 50%; position: absolute; transform: translate(-50%, -50%) matrix(1, 0, 0, 1, 0, 0)"> <path stroke="#ededed" id="outline" fill="none" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="M93.9,46.4c9.3,9.5,13.8,17.9,23.5,17.9s17.5-7.8,17.5-17.5s-7.8-17.6-17.5-17.5c-9.7,0.1-13.3,7.2-22.1,17.1 c-8.9,8.8-15.7,17.9-25.4,17.9s-17.5-7.8-17.5-17.5s7.8-17.5,17.5-17.5S86.2,38.6,93.9,46.4z"></path> <path id="outline-bg" opacity="0.05" fill="none" stroke="black" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="M93.9,46.4c9.3,9.5,13.8,17.9,23.5,17.9s17.5-7.8,17.5-17.5s-7.8-17.6-17.5-17.5c-9.7,0.1-13.3,7.2-22.1,17.1 c-8.9,8.8-15.7,17.9-25.4,17.9s-17.5-7.8-17.5-17.5s7.8-17.5,17.5-17.5S86.2,38.6,93.9,46.4z"></path> </svg>
</div>
</body>
</html>

SVG loading infinite - Script Codes CSS Codes

body { background-color: #ff5252;
}
.loading_template { position: fixed; top: 100px; right: 0; bottom: 0; left: 0; margin: 0 auto; z-index: 2000; width: 200px; height: 200px;
}
.loading_template .loading_svg #outline { stroke-dasharray: 2px, 200px; stroke-dashoffset: 0; animation: anim 1.6s linear infinite;
}
@keyframes anim { 10% { stroke-dasharray: 28px, 200px; stroke-dashoffset: -22px; } 50% { stroke-dasharray: 70px, 200px; stroke-dashoffset: -70px; } 100% { stroke-dasharray: 2px, 200px; stroke-dashoffset: -198px; }
}
SVG loading infinite - Script Codes
SVG loading infinite - Script Codes
Home Page Home
Developer Harley Santos Garzón
Username HarleySG
Uploaded October 15, 2022
Rating 3
Size 2,936 Kb
Views 24,288
Do you need developer help for SVG loading infinite?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Harley Santos Garzón (HarleySG) Script Codes
Create amazing marketing copy with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!