Fix counters on BFOR page
goin old-school
diff --git a/js/counter.js b/js/counter.js
index f632111..38d2ae0 100644
--- a/js/counter.js
+++ b/js/counter.js
@@ -1,3 +1,28 @@
- $('.counter').counterUp({
+/* $('.counter').counterUp({
- });
\ No newline at end of file
+ }); */
+$('.counter').each(function() {
+ var $this = $(this),
+ countTo = $this.attr('data-count');
+
+ $({ countNum: $this.text()}).animate({
+ countNum: countTo
+ },
+
+ {
+
+ duration: 3000,
+ easing:'linear',
+ step: function() {
+ $this.text(Math.floor(this.countNum));
+ },
+ complete: function() {
+ $this.text(this.countNum);
+ //alert('finished');
+ }
+
+ });
+
+
+
+});
\ No newline at end of file