jQuery("#demo").percircle({ perdown:true, secs: 14, timeUpText:'finally!', reset:true }); jQuery(document).ready(function(){ jQuery('.next_preview_btn button').click(function(){ var data = jQuery('.form_section .active h4').text(); if(data == "DEMOGRAPHICS"){ jQuery('div#circle-bar span').text('0%'); jQuery('.filll').css('transform','rotate(-360deg)'); } if(data == "LICENSES"){ jQuery('div#circle-bar span').text('25%'); jQuery('.filll').css('transform','rotate(-270deg)'); } if(data == "MALPRACTICE INSURANCE"){ jQuery('div#circle-bar span').text('50%'); jQuery('.hidden-box').css('border-color','#21e56b'); jQuery('.hidden-box').css('z-index','99999'); jQuery('.hidden-box').css('transform','rotate(-180deg)'); } if(data == "BACKGROUND CHECK"){ jQuery('div#circle-bar span').text('75%'); jQuery('.hidden-box').css('border-color','#21e56b'); jQuery('.hidden-box').css('z-index','99999'); jQuery('.hidden-box').css('transform','rotate(-90deg)'); } }); jQuery('.next_preview_btn button').click(function(){ var num = jQuery('div#circle-bar span').text(); if(num == "50%"){ jQuery('.hidden-box').css('transform','rotate(-180deg)'); jQuery('.hidden-box').css('z-index','unset'); jQuery('.hidden-box').css('border-color','#0eb24c'); } if(num == "0%"){ jQuery('.filll').css('transform','rotate(-270deg)'); } }); }); jQuery(document).ready(function(){ jQuery('.next_preview_btn button').click(function(){ var tabTxt = jQuery('.mypagination .step_patant .active h4').text(); jQuery('.step-tag h2').html(''+tabTxt+''); }); jQuery({ Counter: 0 }).animate({ Counter: jQuery('div#circle-bar span').text() }, { duration: 1000, easing: 'swing', step: function() { jQuery('div#circle-bar span').text(Math.ceil(this.Counter)); } }); });