forked from robert/robertjohnson.work
21 lines
379 B
JavaScript
21 lines
379 B
JavaScript
|
jQuery(document).ready(function($) {
|
||
|
|
||
|
$('.level-bar-inner').css('width', '0');
|
||
|
|
||
|
$(window).on('load', function() {
|
||
|
|
||
|
$('.level-bar-inner').each(function() {
|
||
|
|
||
|
var itemWidth = $(this).data('level');
|
||
|
|
||
|
$(this).animate({
|
||
|
width: itemWidth
|
||
|
}, 800);
|
||
|
|
||
|
});
|
||
|
|
||
|
});
|
||
|
|
||
|
|
||
|
|
||
|
});
|