Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

counterup 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 :: jquery document load 
Javascript :: sort array by string length javascript 
Javascript :: get attribute value jquery href 
Javascript :: javascript check if function exists 
Javascript :: jquery ajax basic authentication 
Javascript :: ajax beforesend 
Javascript :: split into sentences at any punctuation javascript 
Javascript :: mysql json_extract remove quotes 
Javascript :: js remove falsey values from array 
Javascript :: jquery checkbox checked 
Javascript :: remove required attribute jquery 
Javascript :: how to edit the visibiility of an element javscript 
Javascript :: thousands by comma javascript 
Javascript :: "https://cdn.socket.io 
Javascript :: remove a special character from string javascript 
Javascript :: datatables clear table 
Javascript :: regex of date yyyy-mm-dd 
Javascript :: react create app 
Javascript :: react-native text overflow ellipsis 
Javascript :: change display javascript 
Javascript :: import uuid in react 
Javascript :: jquery onlcick css change 
Javascript :: sort array by date moment 
Javascript :: jquery get element by class and data attribute 
Javascript :: js current time 
Javascript :: manage favicon with express app 
Javascript :: how do i backspace from javascript calculator 
Javascript :: jquery if class exists 
Javascript :: detecting screen width in jquery 
Javascript :: logout in react js 
ADD CONTENT
Topic
Content
Source link
Name
9+2 =