animationData: JSON.parse(json),
});
}
+ },
+
+ triggeredBtn: function() {
+ /*$(document).on("mousedown", ".btn", function() {
+ gsap.to($(this), { scale: .9, duration: 0.3 });
+ }).on("mouseup", ".btn", function() {
+ gsap.to($(this), { scale: 1, duration: 0.3 });
+ })*/
}
}
// ICI tout commence vraiment
console.log(this.data.theme)
+ //
+ //this.animations.triggeredBtn()
+
+ //
$("#quiz").css("background-image","url("+this.data.theme.backgroundImage+")")
// La fonction resize est appelée à chaque fois qu'un resize de la fenêtre survient (et à l'init de l'app)
})
key('r', function (e){
e.preventDefault()
+ console.log(e)
$this.resetForm()
})
+ if(key.isPressed('R')) {
+ alert('r')
+ }
+
+ $(document).on("mousedown", ".btn", function() {
+ gsap.to($(this), { scale: .95, duration: .2, ease: "back.inOut" });
+ }).on("mouseup", ".btn", function() {
+ gsap.to($(this), { scale: 1, duration: .2 });
+ })
+
//
this.activeNav()
},
// mise en place de la scrollbar personnalisé
// https://github.com/Grsmto/simplebar/tree/master/packages/simplebar
const simpleBar = new SimpleBar($ul.get(0))
+ },
+
+ restart: function() {
+
}
}
margin-bottom: 9px
.subtitle
+font-size(16)
+
&-content-wrapper
+flex-config(false,false,false,center)
+ position: relative
+ top: var(--space-21-66)
+ left: var(--space-21-66)
&-counter
height: 0