Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:
  • Page:
  • 1
  • 2

TOPIC: Adding animation when changing question divs from display:none to display:block?

Adding animation when changing question divs from display:none to display:block? 4 years 2 months ago #86619

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6574
  • Thank you received: 1477
  • Karma: 579
Yup, good thinking Denis ;)

The more flexibility, the better.
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The administrator has disabled public write access.

Adding animation when changing question divs from display:none to display:block? 8 months 1 week ago #133600

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6029
  • Thank you received: 373
  • Karma: 260
Denis, I was just checking this nice solution at the link you provided (demonstration.sondages.pro/54895/lang-en) but it doesn't seem to work anymore. I can't find the mentioned adjustment at the template.js file at demonstration.sondages.pro/upload/templa...flatblue/template.js.

Did this get overwritten accidentally?

Can you post an updated link?

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"
The administrator has disabled public write access.

Adding animation when changing question divs from display:none to display:block? 8 months 1 week ago #133700

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9586
  • Thank you received: 1375
  • Karma: 390
Mazi wrote:
Denis, I was just checking this nice solution at the link you provided (demonstration.sondages.pro/54895/lang-en) but it doesn't seem to work anymore. I can't find the mentioned adjustment at the template.js file at demonstration.sondages.pro/upload/templa...flatblue/template.js.

Did this get overwritten accidentally?

Can you post an updated link?
Arg .....

Upadte , update, and update again .... i don't fix the template used for this worklaround.

I do a plugin when i found time ....
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (use private message).
The administrator has disabled public write access.

Adding animation when changing question divs from display:none to display:block? 8 months 1 week ago #133716

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6029
  • Thank you received: 373
  • Karma: 260
I'd love to see a working example based on the LS 2.5 shipped templates... :-(

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"
The administrator has disabled public write access.

Adding animation when changing question divs from display:none to display:block? 8 months 5 days ago #133960

  • first
  • first's Avatar
  • Offline
  • Platinum Lime
  • Posts: 329
  • Thank you received: 35
  • Karma: 15
I tried some animation while displaying the question.
<script>
$(function(){
var $nodiv = $('div[style="display: none;"]');
$('body').on('click',function(){
var $nodivQwrap = $('table.question-wrapper', $nodiv).hide();	
	setTimeout(function(){
		$nodiv.each(function(){
			if($(this).css('display') != 'none'){
				$(this).find('table.question-wrapper').show("slow")
			}
		});
	},50);
});
});
</script>


File Attachment:

File Name: limesurvey...1449.lss
File Size:14 KB



Version 2.06+ Build 150612
Template: Defalut
Survey Designer and Programmer
"I always suggest to have a group by group display layout and create a seprate group for each question. This will be extra work but you will get flexiblity to create your question by using more than more lime survey question types."
The administrator has disabled public write access.

Adding animation when changing question divs from display:none to display:block? 8 months 2 days ago #134196

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6029
  • Thank you received: 373
  • Karma: 260
That test survey doesn't work with LS 2.50 and the templates used there by default.

I assume this is due to the different template layout and missing CSS IDs/classes? Because I see no animation there.
Test link: ls25.mysurveyhosting.com/index.php/surve...49/newtest/Y/lang/en

At LS 2.06 it works fine: ls206lts.mysurveyhosting.com/index.php/991449?newtest=Y

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"
Last Edit: 8 months 2 days ago by Mazi.
The administrator has disabled public write access.

Adding animation when changing question divs from display:none to display:block? 8 months 1 day ago #134213

  • first
  • first's Avatar
  • Offline
  • Platinum Lime
  • Posts: 329
  • Thank you received: 35
  • Karma: 15
Yes, I have 2.06 installed on my local system. We can adpat the code for differnt LS versions.
Survey Designer and Programmer
"I always suggest to have a group by group display layout and create a seprate group for each question. This will be extra work but you will get flexiblity to create your question by using more than more lime survey question types."
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Time to create page: 0.231 seconds
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form