}, 500);
}
},
-
- 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 });
- })*/
- }
}
+++ /dev/null
-import QuizQuestion from "./quiz.question";
-
-function QuizCountdown(quiz) {
- this.quiz = quiz;
- this.question = new QuizQuestion()
- this.intervalCountDown = false
-}
-
-QuizCountdown.prototype = {
-
-}
-
-export default QuizCountdown;
window.$ = window.jQuery = $;
import ResizeObserver from 'resize-observer-polyfill';
-import QuizCountdown from "./quiz.countdown";
window.ResizeObserver = ResizeObserver;
callback();
}
$this.activeScreen = screenToShow;
+
+ gsap.timeline().to(screenToShow, {
+ autoAlpha: 1
+ })
+ .to(".active-screen .header-question *", {
+ opacity: 1,
+ duration: .5
+ })
+ .to(".active-screen .list-item", {
+ opacity: 1,
+ ease: "power1.inOut",
+ stagger: .15
+ }, .7)
+ .to(".active-screen .footer-question", {
+ y: 0,
+ duration: 1,
+ opacity: 1,
+ ease: "circ.out",
+ onComplete: function () {
+ // if countdown enable
+ if($this.quiz.question.current() !== undefined) {
+ if (parseInt($this.quiz.question.current().countdown_enable)) {
+ $this.countdown()
+ }
+ }
+ }
+ }, 1.2)
+
// Reset form to prevent browser letting a option selected after a refresh
$this.resetForm();
$this.currentQuestionAnswers = [];
$this.quiz.progressbar.update();
- // if countdown enable
- if($this.quiz.question.current() !== undefined) {
- if (parseInt($this.quiz.question.current().countdown_enable)) {
- $this.countdown()
- }
- }
+
if (screen === 'outro') {
$this.outro.show();
margin: 0 auto
+padding-container()
position: relative
+ overflow: hidden
.btn
padding: 0 12px
position: absolute
right: 0
top: 0
- background-color: #E062A8
+ +opacity(.32,background-color,$texts-color)
span
z-index: 1
&.secondary
&.question-multiple
object-position: top
+.active-screen
+ opacity: 0
+
.m
.screen-image
img.mobile
.header-question
text-align: center
+ *
+ opacity: 0
.abovetitle
+font-size(16)
.progress-container
bottom: 24px
transform: translateX(-50%)
+.footer-question
+ transform: translateY(100%)
+
.m
.header-question
.abovetitle
+breakpoint(md)
grid-template-columns: repeat(2, 1fr)
&-item
+ opacity: 0
label
width: 100%
height: 58px