Responsive design? #792
-
Hi Josh and everyone, I'm designing an experiment with jsPsych and it's working great, thanks for developing this tool. I just have one quick question that I haven't been able to figure out yet: what's the best/easiest way to make the experiment adaptive so that users with smartphones or PCs can both participate and have a similar experience? Is this something that can be done within jsPsych or is it pure html+css? Kind regards, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @fmlopezguzman! There's nothing in particular that you would do within jsPsych to make the experiment responsive. The display centers by default, so if you keep the content small enough to display on a mobile device you'll get the same experience on both platforms. If you want to adapt in some other way, like making elements larger on PCs, you could use |
Beta Was this translation helpful? Give feedback.
Hi @fmlopezguzman!
There's nothing in particular that you would do within jsPsych to make the experiment responsive. The display centers by default, so if you keep the content small enough to display on a mobile device you'll get the same experience on both platforms. If you want to adapt in some other way, like making elements larger on PCs, you could use
@media
queries in the CSS.