Preview
Counter vertical
Counter horizontal
Inflaction
9999
Rainfall
9999
mm
Usage
<div class="counter counter-vertical counter-icon">
<i class="im-cloud-rain text-md"></i>
<div>
<h3>Rainfall</h3>
<div class="value">
<span class="text-md" data-to="9999" data-speed="5000">9999</span>
<span>mm</span>
</div>
</div>
</div>
<div class="counter counter-horizontal counter-icon">
<i class="im-over-time text-md"></i>
<div>
<h3>History</h3>
<div class="value">
<span class="text-md" data-to="9999" data-speed="5000">9999</span>
<span>years</span>
</div>
</div>
</div>
Installation
<script src='themekit/scripts/progress.js'></script>
Settings
| Name | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Initialization | -- |
Add the class counter and the attribute data-to="123" to the target item.
|
||||||||||||
| Initialization | Javascript |
Use the funciton $('#target').countTo({option:value, option:value, ...});
|
||||||||||||
| Manual initialization | Attribute |
Add the attribute data-trigger="manual" to stop the auto execution of the component on page load.
Use this features also when the component is placed inside a container.
|
||||||||||||
| Settings | Data attribute |
|