In this website, when you scroll down to the badge section,I have "locked and unlocked" badges.
Issues:
Can I make the locked badges faded. (as in hover effect we see a faded image)
Can we make the unlocked badges appear first and locked badges at the end.
css and js related to the locked and unlocked section:
$.each($('.Portfolio-box'), function() {
var count = $(this).children('.has-badge').attr('data-count');
if (count > 0) {
$(this).children('ul.locked').hide();
$(this).children('ul.unlocked').show();
} else {
$(this).children('ul.locked').show();
$(this).children('ul.unlocked').hide();
}
});
.unlocked li:before {
content: '\2713';
display: inline-block;
color: green;
margin-left: -65px;
padding: 0 9px 0 0;
}
.unlocked li {
list-style-type: none;
font-size: 1.5em;
margin: 1px;
font-weight: bold;
}
.locked li:before {
content: '\274c';
display: inline-block;
color: red;
margin-left: -65px;
padding: 0 9px 0 0;
}
.locked li {
list-style-type: none;
font-size: 1.5em;
margin: 1px;
font-weight: bold;
}
Fiddle link of the entire site :https://jsfiddle.net/dkjz1z4k/1/