Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

278
Views
How to hide the thumb of slider till participant responds, in canvas-slider-response plugin in jsPsych?

I have a behavioural experiment on jsPsych. Currently, I present participants with an image that is drawn on HTML canvas and they have to respond with a slider. However, I don't want them to see the thumb till they click on the slider (to avoid a bias). How can I do that?

.jspsych-slider::-webkit-slider-thumb {
  /*border: 1px solid #666;
  height: 24px;
  width: 15px;
  border-radius: 5px;
  background: #ffffff;
  cursor: pointer;*/
  -webkit-appearance: none;
  /*margin-top: -9px;*/
  /*visibility: hidden*/;
}

.jspsych-slider::-ms-thumb {visibility: hidden;}
.jspsych-slider::-moz-range-thumb {visibility:hidden;}

I tried updating these in the CSS file for jsPsych but this does not seem to help. Also, I tried another exisiting solution for a similar plugin but that is also not helping with the canvas-slider-plugin.

on_load: function(){
  document.querySelector('#jspsych-html-slider-response-response').addEventListener('click', function(e){
    e.target.style.visibility = 'show'})
},

Any help in this respect is appreciated. Thank you, Prashanti

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!