Number change effects
How do I make an number change effects?
What is a number change effects? How do you make a number change effects? This script and codes were developed by Icebob on 12 June 2022, Sunday.
Number change effects - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Number change effects</title> <link rel="stylesheet" href="css/style.css">
</head>
<body>
<div class="container" id="rollout"> <div class="field"><span class="value">0</span><span class="newValue"></span></div> <div class="field"><span class="value">0</span><span class="newValue"> </span></div> <div class="field"><span class="value">0</span><span class="newValue"> </span></div> <div class="field"><span class="value">0</span><span class="newValue"> </span></div> <div class="field"><span class="value">0</span><span class="newValue"> </span></div> <div class="field"><span class="value">0</span><span class="newValue"> </span></div>
</div>
<div class="container" id="count"> <div class="field"><span class="value">0</span><span class="newValue"></span></div> <div class="field"><span class="value">0</span><span class="newValue"> </span></div> <div class="field"><span class="value">0</span><span class="newValue"> </span></div> <div class="field"><span class="value">0</span><span class="newValue"> </span></div> <div class="field"><span class="value">0</span><span class="newValue"> </span></div> <div class="field"><span class="value">0</span><span class="newValue"> </span></div>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Number change effects - Script Codes CSS Codes
@import url(http://fonts.googleapis.com/css?family=Kelly+Slab|Graduate|Share+Tech+Mono);
html { font-family: "Kelly Slab"; font-size: 1.3em; font-weight: 700; background-color: gray; color: Black; text-shadow: 1px 1px 3px rgba(50, 50, 50, 0.8);
}
.container { display: block; height: 30px; clear: both; margin: 20px;
}
.field { position: relative; float: left; margin: 4px 10px; width: 100px; height: 30px; line-height: 30px; text-align: center; background-color: #e7e7e7; border: 1px solid #888; -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px; overflow: hidden;
}
span { display: block; height: 30px; /*position: absolute; left: 0px; top: 0px; */
}
Number change effects - Script Codes JS Codes
(function() { $("#rollout .field").each(function(index, item) { return setInterval(function() { var newValue, value; value = $(item).find("span.value"); newValue = $(item).find("span.newValue"); newValue.text(Math.round(parseInt(value.text(), 10) + Math.random() * 100)); return value.animate({ "margin-top": "-30px" }, 500, function() { value.text(newValue.text()); return value.css("margin-top", "0px"); }); }, Math.round(2000 + Math.random() * 2000)); }); $("#count .field").each(function(index, item) { return setInterval(function() { var inc, val, value; value = $(item).find("span.value"); val = parseInt(value.text(), 10); inc = Math.round(Math.random() * 50); return $({ someValue: val }).animate({ someValue: val + inc }, { duration: 500, easing: 'swing', step: function() { return value.text(Math.round(this.someValue)); } }); }, Math.round(2000 + Math.random() * 2000)); });
}).call(this);
Developer | Icebob |
Username | icebob |
Uploaded | June 12, 2022 |
Rating | 3 |
Size | 3,422 Kb |
Views | 48,576 |
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 |
Home portal app | 17,672 Kb |
Style Guide Template | 10,550 Kb |
A Pen by Icebob | 7,324 Kb |
Angular Sample App with Semantic UI | 3,545 Kb |
Memory card game with VueJS | 7,266 Kb |
Dashboard page | 5,813 Kb |
Animated popup window | 4,352 Kb |
Radio player | 7,689 Kb |
Loading animation with css | 2,947 Kb |
Dashboard info panels with animation | 4,322 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 |
Nav Test -- cats 1 | Payls | 4,735 Kb |
CSS3 Diamond | Rendro | 1,960 Kb |
Rotate Demo | Agelber | 3,061 Kb |
Preloader | Rikki_Sixx | 2,815 Kb |
P5.js data visualization | Enginarslan | 2,233 Kb |
Javascript Welcome | Peterlewicki | 1,573 Kb |
Scroll using CSS | Casperovic | 2,159 Kb |
SVG Transform vs CSS Transform | AmeliaBR | 4,175 Kb |
Menubar compass mixin | Michaelparenteau | 4,925 Kb |
Tab Menus | Zephyr | 3,180 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!