updateIcons: function () {
$("[data-icon]").each(function () {
var iconId = 'quiz-' + $(this).data('icon');
+
// L'icône est déjà en place
if ($(this).children('svg.' + iconId).length) {
return;
$(this).children('svg.svg-icon').remove();
// Puis on ajoute l'icône
var icon = getSpriteIcon(iconId);
+
if ($(this).is('[data-icon-prepend]')) {
$(this).prepend(icon);
} else {
opacity: 1
})
.to(".active-screen .bottom-slider .swiper-slide", {
- opacity: function(index) {
- let opacity = 1
- if(index === 1) {
- opacity = 0.48
- }else if(index === 2) {
- opacity = 0.24
- }else if(index === 3) {
- opacity = 0
- }
- return opacity
- },
+ opacity: 1,
ease: "power1.inOut",
stagger: .15,
onComplete: function() {