Animation countdown
How do I make an animation countdown?
Animation circle & line countdown. What is a animation countdown? How do you make a animation countdown? This script and codes were developed by Elena on 17 December 2022, Saturday.
Animation countdown - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Animation countdown</title> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ .circle-wrap { overflow: hidden; margin: 10% auto;
}
.circular-bar { text-align: center; width: 30%; float: left;
}
.circular-bar .circular-bar-content { margin-bottom: 70px; margin-top: -95px; text-align: center;
}
.circular-bar .circular-bar-content strong { display: block; font-weight: 600; font-size: 18px; font-size: 1.125rem; line-height: 1.5rem; line-height: 24px;
}
.circular-bar .circular-bar-content label { display: block; font-weight: 300; font-size: 15px; font-size: 0.9375rem; line-height: 1.25rem; line-height: 20px;
}
.default { margin-left: 100px; width: 400px; height: 22px; background: #eee; border: 1px solid #ccc; border-radius: 15px; overflow: hidden; margin-bottom: 2rem;
}
.default div { height: 100%; color: #fff; text-align: right; font-size: 12px; line-height: 22px; width: 0;
}
.default_1 div { background: #607d8b;
}
.default_2 div { background: #009688;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div class="circle-wrap"> <div class="circular-bar"> <input type="text" class="dial" data-fgColor="#00bcd4" data-width="150" data-height="150" data-linecap=round value="45" > <div class="circular-bar-content"> <strong>Title 1</strong> <label></label> </div> </div> <div class="circular-bar"> <input type="text" class="dial" data-fgColor="#009688" data-width="150" data-height="150" data-linecap=round value="15" > <div class="circular-bar-content"> <strong>Title 2</strong> <label></label> </div> </div> <div class="circular-bar"> <input type="text" class="dial" data-fgColor="#607d8b" data-width="150" data-height="150" data-linecap=round value="85" > <div class="circular-bar-content"> <strong>Title 3</strong> <label></label> </div> </div>
</div>
<div> <div id="progressBar" class="default default_1"><div></div></div> <div id="progressBar2" class="default default_2"><div></div></div>
</div> <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.1/jquery.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/jQuery-Knob/1.2.13/jquery.knob.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Animation countdown - Script Codes CSS Codes
.circle-wrap { overflow: hidden; margin: 10% auto;
}
.circular-bar { text-align: center; width: 30%; float: left;
}
.circular-bar .circular-bar-content { margin-bottom: 70px; margin-top: -95px; text-align: center;
}
.circular-bar .circular-bar-content strong { display: block; font-weight: 600; font-size: 18px; font-size: 1.125rem; line-height: 1.5rem; line-height: 24px;
}
.circular-bar .circular-bar-content label { display: block; font-weight: 300; font-size: 15px; font-size: 0.9375rem; line-height: 1.25rem; line-height: 20px;
}
.default { margin-left: 100px; width: 400px; height: 22px; background: #eee; border: 1px solid #ccc; border-radius: 15px; overflow: hidden; margin-bottom: 2rem;
}
.default div { height: 100%; color: #fff; text-align: right; font-size: 12px; line-height: 22px; width: 0;
}
.default_1 div { background: #607d8b;
}
.default_2 div { background: #009688;
}
Animation countdown - Script Codes JS Codes
$(document).ready(function(){ $('.dial').each(function () { var elm = $(this); var color = elm.attr("data-fgColor"); var perc = elm.attr("value"); elm.knob({ 'value': 0, 'min':0, 'max':100, "skin":"tron", "readOnly":true, "thickness":.1, 'dynamicDraw': true, "displayInput":false }); $({value: 0}).animate({ value: perc }, { duration: 2000, easing: 'swing', progress: function () { elm.val(Math.ceil(this.value)).trigger('change') } }); //circular progress bar color $(this).append(function() { elm.parent().parent().find('.circular-bar-content').css('color',color); elm.parent().parent().find('.circular-bar-content label').text(perc+'%'); }); }); function progressBar(percent, $element) { var progressBarWidth = percent * $element.width() / 100; $element.find('div').animate({ width: progressBarWidth }, 1500).html(percent + "% "); } progressBar(75, $('#progressBar')); progressBar(25, $('#progressBar2')); });
Developer | Elena |
Username | semenchenko |
Uploaded | December 17, 2022 |
Rating | 3 |
Size | 3,081 Kb |
Views | 16,192 |
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 |
CSS hover effect | 3,256 Kb |
Animation countdown | 3,081 Kb |
Responsive HTML Email template | 4,246 Kb |
Business card mockup | 4,866 Kb |
Slider CSS Only | 8,018 Kb |
Zen cube | 2,083 Kb |
Calc.js | 4,200 Kb |
PROCESS INFOGRAPHIC | 4,623 Kb |
Walking skeleton only css | 9,064 Kb |
A Pen by Elena | 3,573 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 |
Bezier Animation with straight paths | Rhernando | 2,087 Kb |
CSS Infinite 360 | APinix | 5,564 Kb |
Cut and Paste Roll Link | BottomlineInteractive | 2,546 Kb |
SVG Playground | Roygwells | 1,834 Kb |
Review test | Otro_user_gil | 4,054 Kb |
FreeCodeCamp - Simon Game | Ivhed | 8,481 Kb |
Kudos Please | TimPietrusky | 6,624 Kb |
Falling Down the Rabbit Hole | Rachelnabors | 4,578 Kb |
A Pen by Alex Edwards | Exards | 8,218 Kb |
Mini Profile | Frytyler | 3,828 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!