Pastel Loader
How do I make an pastel loader?
GSAP loader animation. Flexible and configurable with Jade. Simple TweenMax script. SVG stroke drawing. Inspired by Giga Khurtsilava: https://www.behance.net/gallery/29653513/Loaders. What is a pastel loader? How do you make a pastel loader? This script and codes were developed by Arsen Zbidniakov on 13 October 2022, Thursday.
Pastel Loader - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Pastel Loader</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>
<figure> <p>Loading</p> <svg x="0" y="0" width="#{box}" height="#{box}" viewBox="0 0 #{box} #{box}" overflow="visible"> <g> <circle cx="#{box/2}" cy="#{box/2}" r="#{box/2}" stroke="#{circle.color}" stroke-width="#{circle.width}" data-offset="#{circle.offset}"></circle> <circle cx="#{box/2}" cy="#{box/2}" r="#{box/2}" stroke="#{circle.color}" stroke-width="#{circle.width}" data-offset="#{circle.offset}"></circle> <circle cx="#{box/2}" cy="#{box/2}" r="#{box/2}" stroke="#{circle.color}" stroke-width="#{circle.width}" data-offset="#{circle.offset}"></circle> </g> <g transform="rotate(180 #{box/2} #{box/2})"> <circle cx="#{box/2}" cy="#{box/2}" r="#{box/2}" stroke="#{circle.color}" stroke-width="#{circle.width}" data-offset="#{circle.offset}"></circle> <circle cx="#{box/2}" cy="#{box/2}" r="#{box/2}" stroke="#{circle.color}" stroke-width="#{circle.width}" data-offset="#{circle.offset}"></circle> <circle cx="#{box/2}" cy="#{box/2}" r="#{box/2}" stroke="#{circle.color}" stroke-width="#{circle.width}" data-offset="#{circle.offset}"></circle> </g> </svg>
</figure> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='http://cdnjs.cloudflare.com/ajax/libs/gsap/1.16.1/TweenMax.min.js'></script>
<script src='http://s3-us-west-2.amazonaws.com/s.cdpn.io/16327/DrawSVGPlugin.js?r=5'></script> <script src="js/index.js"></script>
</body>
</html>
Pastel Loader - Script Codes CSS Codes
@import url(https://fonts.googleapis.com/css?family=Nunito:700);
body { margin: 0; background: #FED75A; overflow: hidden;
}
figure { display: flex; align-items: center; justify-content: center; position: relative; margin: 0; height: 100vh; width: 100vw;
}
circle { fill: none; stroke-linecap: round;
}
p { position: absolute; top: 0; left: 0; right: 0; margin: 0; color: #EC6D76; text-align: center; text-transform: uppercase; line-height: 100vh; letter-spacing: 4px; font-family: 'Nunito', sans-serif; font-size: 24px;
}
Pastel Loader - Script Codes JS Codes
TweenLite.set('circle', {drawSVG: '0'});
TweenLite.defaultEase = Sine.easeInOut;
var duration = 1.25, ctl = new TimelineMax({repeat: -1}), ptl = new TimelineMax({repeat: -1, yoyo: true});
ptl.add( TweenMax.fromTo('p', duration/2, {opacity: 1}, {opacity: 0.65}) );
$('circle').each(function(index, el){ var offset = $(el).data('offset'); ctl.add(arc(el, (duration - offset)), offset);
});
function arc(circle, duration) { var tl = new TimelineLite(); tl.to(circle, duration*0.9, {drawSVG: '90% 100%'}) .to(circle, duration*0.1, {drawSVG: '99.75% 100%'}); return tl;
}
Developer | Arsen Zbidniakov |
Username | ARS |
Uploaded | October 13, 2022 |
Rating | 4.5 |
Size | 3,365 Kb |
Views | 28,336 |
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!
Name | Size |
Timer | 2,845 Kb |
HTML5 Audio Player | 5,934 Kb |
IPhone lockscreen | 3,923 Kb |
Page Transition Loader | 7,268 Kb |
Understanding CSS clip | 8,794 Kb |
Flat UI - Checkbox FIX | 2,663 Kb |
Infinity Morph | 2,974 Kb |
Apple Devices Mockup | 2,484 Kb |
Long Shadows for Font Awesome | 3,424 Kb |
ELEKS Digital Production | 9,176 Kb |
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!
Name | Username | Size |
A Pen by utcwebdev | Utcwebdev | 2,856 Kb |
Email Marketing Mock | Kristenzirkler | 8,224 Kb |
Google Maps API Ground Overlay | Boycetrus | 2,961 Kb |
Vertical Pan Hammer.js example | Jtangelder | 2,144 Kb |
Simple content swap | Snografx | 1,859 Kb |
Blog demo to use given styling | Andygirl | 2,412 Kb |
Animate a paper plane along an SVG path, looking ahead | PotatoDie | 3,734 Kb |
Two tables and header with jspdf-autotable | Someatoms | 2,245 Kb |
RPG Style Text Dialogue | Odylic | 2,635 Kb |
Addthis_button | Esambino | 1,691 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!