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 :: how to use another port in angular 
Javascript :: createroot react 
Javascript :: exclude node_modules from tree command 
Javascript :: delay in javascript 
Javascript :: moment format datetime postgresql 
Javascript :: javascript run every 5 seconds 
Javascript :: iterate key value object javascript 
Javascript :: full width of image and maintain aspect ratio react native 
Javascript :: angular go to route 
Javascript :: check if checkbox is checked jquery 
Javascript :: js get initials from name 
Javascript :: apex charts cdn 
Javascript :: 1 line unique id 
Javascript :: socket io cdn 
Javascript :: js replace single quote with doubel quote 
Javascript :: showing difference between dates in minutes js 
Javascript :: regex yyyy-mm-dd 
Javascript :: create-react-app 
Javascript :: javascript check if object is empty 
Javascript :: how to convert string to kebab case in javascript 
Javascript :: uuid react 
Javascript :: href back page javascript 
Javascript :: sort object alphabetically javascript 
Javascript :: javascript select element with attribute 
Javascript :: javascript get current time 
Javascript :: colab notebook keeps getting disconnected 
Javascript :: js reload page 1024 breakpoint 
Javascript :: fs check if dir is dir 
Javascript :: js number 2 decimal places 
Javascript :: pass header in ajax 
ADD CONTENT
Topic
Content
Source link
Name
7+7 =