Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

counterup2.js cdn

 <!-- jquery js -->
 <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
 <!-- waypoint js -->
 <script src="https://cdnjs.cloudflare.com/ajax/libs/waypoints/4.0.1/jquery.waypoints.min.js"></script>
 <!-- counter up2 js -->
 <script src="https://cdnjs.cloudflare.com/ajax/libs/counterup2/2.0.2/index.js"></script>

// counter up 2 js initialize
	jQuery(function ($) {
		'use strict';
		var counterUp = window.counterUp['default']; // import counterUp from "counterup2"
		var $counters = $('.counter');
		/* Start counting, do this on DOM ready or with Waypoints. */
		$counters.each(function (ignore, counter) {
			var waypoint = new Waypoint({
				element: $(this),
				handler: function () {
					counterUp(counter, {
						duration: 5000,
						delay: 16,
					});
					this.destroy();
				},
				offset: 'bottom-in-view',
			});
		});
	});




//counterup js plugin old version use this code 


//jquery cdn
<script src=" https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js "></script>

//waypoint cdn
<script src=" https://cdnjs.cloudflare.com/ajax/libs/waypoints/4.0.1/jquery.waypoints.min.js "></script>

//counterup cdn
<script src=" https://cdnjs.cloudflare.com/ajax/libs/Counter-Up/1.0.0/jquery.counterup.min.js "></script>

// counterup inint

	$('.counter1').counterUp({
      delay: 20,
      time: 1500,
    });

Comment

PREVIOUS NEXT
Code Example
Javascript :: counterup2 cdn 
Javascript :: read file node 
Javascript :: hide header react navigation 
Javascript :: jquery disable checkbox 
Javascript :: angular.json bootstrap path 
Javascript :: how to use datepipe in ts file 
Javascript :: disable a button in javascript for a time period 
Javascript :: es module __dirname alternative 
Javascript :: js remove readonly attribute 
Javascript :: jquery is checkbox checked 
Javascript :: get current formatted time in javascript 
Javascript :: Storing Objects in HTML5 localStorage 
Javascript :: number with commas js 
Javascript :: on resize jquery 
Javascript :: js timer reload page 
Javascript :: check for internet explorer browser in javascript 
Javascript :: upgrade node version ubuntu 
Javascript :: npx create-react-app 
Javascript :: how to extract domain name of url of current page in javascript 
Javascript :: javascript screen size 
Javascript :: date add 1 hour javascript 
Javascript :: js random 
Javascript :: jquery cdn cloudflare 
Javascript :: sleep in react 
Javascript :: pass csrf token in ajax laravel 
Javascript :: js get element distance from top 
Javascript :: javascript listen for double click 
Javascript :: disable scroll jquery 
Javascript :: devextreme datagrid get selected row keys 
Javascript :: how to remove a class in js after 100 milliseconds 
ADD CONTENT
Topic
Content
Source link
Name
1+7 =