Skip to content

Commit

Permalink
Dev: added animation options for questions
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Jul 5, 2017
1 parent da664d8 commit 5dbe2f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions templates/default/config.xml
Expand Up @@ -47,6 +47,8 @@
<animatebody>off</animatebody>
<!-- see https://daneden.github.io/animate.css/ -->
<bodyanimation>lightSpeedIn</bodyanimation>
<animatequestion>off</animatequestion>
<questionanimation>flipInX</questionanimation>
</options>

<!-- Here datas about how LimeSurvey should load the template -->
Expand Down
2 changes: 1 addition & 1 deletion templates/default/views/subviews/survey/question.twig
Expand Up @@ -36,7 +36,7 @@
{% endif %}

<!-- Question -->
<div id="question{{ aQuestion.qid }}" class=" {{ sClasses }} {{ aQuestion.input_error_class }} question-container row">
<div id="question{{ aQuestion.qid }}" class=" {{ sClasses }} {{ aQuestion.input_error_class }} question-container row {% if (aSurveyInfo.options.animatequestion == "on") %} animated {{ aSurveyInfo.options.questionanimation }} {%endif%}">

<!-- Question text -->
<div class="question-title-container bg-primary col-xs-12">
Expand Down

0 comments on commit 5dbe2f4

Please sign in to comment.