Animation countdown

Developer
Size
3,081 Kb
Views
16,192

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 Previews

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 + "%&nbsp;"); } progressBar(75, $('#progressBar')); progressBar(25, $('#progressBar2')); });
Animation countdown - Script Codes
Animation countdown - Script Codes
Home Page Home
Developer Elena
Username semenchenko
Uploaded December 17, 2022
Rating 3
Size 3,081 Kb
Views 16,192
Do you need developer help for Animation countdown?

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!

Elena (semenchenko) Script Codes
Create amazing sales emails 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!