Animated number counts are popular to show off your overall statistic to your visitors.
Kickpages does not currently have a ready made block for this which gives the option to completely get a blank canvas for our unique number count. With this method, you can build your own number count and design it how you would like using basic elements from the Kickpages editor. You really just need an image or icon, a paragraph text for for the number and another paragraph for the label text below. I will not get into building up the elements themselves.
In short:
- add a section or a row with any number of columns you would like (the number of items you would like to display, unlimited)
- add an image or icon into the first column
- add a paragraph text which will be the number itself and enter as content "1" so you can see the styling of the font (let's call this MAIN PARAGRAPH, will be used later)
- add another paragraph text which will be the label below the number count
- style the column as you would like to know by selecting image,setting font sizes and colors (every styling will be kept and used as it is)
- clone the elements over to the other columns you have and change the icons/images and labels as you would like
You do not have to keep the design above, you can let your imagination free, use multiple rows or whatever you would like.
For the section or line which holds all your elements add a custom class called "count_up_holder"
For all of the MAIN PARAGRAPHS which are your number you will need to add some custom classes to, please note that you need to add it for all four or any number of elements you might have.
First class to add is "count_up" then leave out a space and add the second class. Second class is "count_to-123" and this is a custom class. The number in the end of the class, defines the number to which the count will run from 1. You can use any number there and it can be different for all elements,, important is to keep the format and add your custom number after the dash character.
You will need to add a custom JavaScript code to your page to, which can be easily done from the page settings and custom includes:
The code to add is the following: https://pastebin.com/HYXKCPTp
Just scroll down the page and copy the raw code and add it in the "Code for Head Tag":
With this you are done, you can save your page and you can preview or publish your changes.
Things to note:
- the script is made to trigger on scroll, these statistics are usually displayed further down on the page. If you want to use it on load in the view without scrolling, then please let us know and we can modify it for you easily.
- If you have some programming/javascript knowledge, then feel free to edit it based on your needs, for example you can use this only once in the page since only the last occurrence will trigger the animation effect. If you do not have the required knowledge then feel free to contact us and we can help you out.
- you do not have to stick to the common look, feel free to experiment with new styling, as long as the custom classes are set, it will work.
-