'Change color of marks if not a multiple of five material ui slider

Hey Guys I'm working with material ui slider. I want to change the color and height of the mark if its not a multiple of 5. I've tried multiple ways but only one color or height be given to those marks.

 mark: {
    color: "white",
    height: "15px",
  },

What I achieved

What I want to achieve



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source