The final countup
How do I make an the final countup?
Dede-deee-de --- dede-de-de-de!. What is a the final countup? How do you make a the final countup? This script and codes were developed by Timo Hausmann on 16 October 2022, Sunday.
The final countup - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>the final countup</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! */ body { background: #333 url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAGklEQVQIW2NkYGD4D8SMQAwGcAY2AbBKDBUAVuYCBQPd34sAAAAASUVORK5CYII=); text-align: center;
}
#counter { display: inline-block; font-family: 'Courier New', monospace; font-weight: bold; font-size: 80px; letter-spacing: 5px; line-height: 1; color: transparent; position: relative; margin-top: 75px; padding: 10px 20px; background: #111; border: 10px solid #222; border-color: #222 #222 #444 #222;
}
#counter:after { content:""; position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAF0lEQVQIW2NkQAOMQL4xshhIAAVgCAAACksAOIK2gpkAAAAASUVORK5CYII=);
}
#counter span { position: absolute; right: 0; top: 0; padding: 10px 20px; color: rgba(255,255,255,0.25); text-shadow: 0 0 7px #0cf; opacity: 0; animation: fadeIn 1s;
}
#counter span.last { opacity: 1;
}
@keyframes fadeIn { from { transform: scale(0.5); opacity: 1;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <span id="counter">18752</span> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
The final countup - Script Codes CSS Codes
body { background: #333 url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAGklEQVQIW2NkYGD4D8SMQAwGcAY2AbBKDBUAVuYCBQPd34sAAAAASUVORK5CYII=); text-align: center;
}
#counter { display: inline-block; font-family: 'Courier New', monospace; font-weight: bold; font-size: 80px; letter-spacing: 5px; line-height: 1; color: transparent; position: relative; margin-top: 75px; padding: 10px 20px; background: #111; border: 10px solid #222; border-color: #222 #222 #444 #222;
}
#counter:after { content:""; position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAF0lEQVQIW2NkQAOMQL4xshhIAAVgCAAACksAOIK2gpkAAAAASUVORK5CYII=);
}
#counter span { position: absolute; right: 0; top: 0; padding: 10px 20px; color: rgba(255,255,255,0.25); text-shadow: 0 0 7px #0cf; opacity: 0; animation: fadeIn 1s;
}
#counter span.last { opacity: 1;
}
@keyframes fadeIn { from { transform: scale(0.5); opacity: 1;
}
The final countup - Script Codes JS Codes
var $counter = $('#counter'), data, t;
init();
function init() { var val = parseInt( $counter.html() ); data = { val: parseInt( val/2 ), end: val, step: parseInt( val/100 ) }; clearTimeout(t); $counter.find('span').remove(); appendNumbers();
}
function appendNumbers() { var delta = (1 - (data.val / data.end)) * 100, $output; data.val += data.step; if( data.val > data.end ) data.val = data.end; $output = $('<span>' + data.val + '<span>'); $counter.append( $output ); if( data.val < data.end ) { t = setTimeout( appendNumbers, 1000/delta); } else { $output.addClass('last'); $counter.find('span').not('.last').remove(); }
}
$('body').on('click', init);
Developer | Timo Hausmann |
Username | timohausmann |
Uploaded | October 16, 2022 |
Rating | 3.5 |
Size | 3,054 Kb |
Views | 18,216 |
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 |
Triangle Split Plane | 3,263 Kb |
Simple CSS 3D Cubes | 2,894 Kb |
Valentines Day | 3,118 Kb |
Spring Physics | 3,272 Kb |
Stream of Cables | 2,488 Kb |
Another Particle Demo | 2,956 Kb |
Depth First Search Hexagon Maze | 3,061 Kb |
Use your mousewheel | 4,109 Kb |
Simple 3d cube | 2,963 Kb |
Vector Based Movement | 2,568 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 |
Simple star rating using js and data-uri | TheEnd | 5,795 Kb |
Fun form with currentColor | Bnthor | 2,713 Kb |
Sticky Navbar | Phantomesse | 5,106 Kb |
Starfield old school style | Bolloxim | 5,214 Kb |
Playing with transition timing | Mattgrosswork | 1,993 Kb |
Filter inputs | Rowinf | 1,721 Kb |
CSS3 Form | Tusharbandal | 1,836 Kb |
Cartoon Bomb | Tcmulder | 4,929 Kb |
CSS Infinite 360 | APinix | 5,564 Kb |
A Pen by Andrea Verlicchi | Verlok | 2,018 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!