Skip to content
Discussion options

You must be logged in to vote

Hi @fspinar, there's some info about how to do this on the jsPsych Controlling Visual Appearance docs page. You can add CSS rules to your file (by adding them inside <style> tags on your HTML page, or linking to an external CSS file). You can use the stimulus element's ID to create a CSS selector. In the image-keyboard-response plugin, the stimulus ID is "jspsych-image-keyboard-response-stimulus", so you could add this to your HTML file:

<style>#jspsych-image-keyboard-response-stimulus { <your CSS position rules here> }</style>

And if you're using jsPsych v6.3.0+, then you can use the css_classes parameter, which allows you to change the CSS on a trial-by-trial basis. There are some examp…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@fspinar
Comment options

@becky-gilbert
Comment options

@fspinar
Comment options

Answer selected by becky-gilbert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants