Initiate
<div class="drum"></div>
<script>
$('.drum').drum({
min: 0,
max: 10,
value: 4
});
</script>
or
<select class="week-day">
<option>Sunday</option>
<option>Monday</option>
<option>Tuesday</option>
<option>Wednesday</option>
<option>Thursday</option>
<option>Friday</option>
<option>Saturday</option>
</select>
<script>
$('.week-day').drum();
</script>
Style with CSS
.drum-viewport {
height: 3em;
background: hsl(90, 90%, 90%);
font-size: 2rem;
cursor: pointer;
}
.drum-viewport:focus {
outline: 1px solid hsl(90, 90%, 37%);
}
.drum-drum {
margin: 0 .75em;
}
.drum-item {
padding: 0.4em;
background: white;
border-top: 3px solid hsl(90, 90%, 90%);
border-bottom: 3px solid hsl(90, 90%, 90%);
color: hsl(90, 90%, 37%);
text-align: center;
font-weight: bold;
}
.drum-viewport {
position: relative;
height: 8em;
background: hsl(0, 0%, 90%);
border: 5px solid hsl(0, 0%, 90%);
cursor: pointer;
}
.drum-viewport:focus {
outline: none;
background: hsl(0, 0%, 85%);
border-color: hsl(0, 0%, 85%);
}
.drum-viewport::before,
.drum-viewport::after {
content: "";
position: absolute;
z-index: 1;
left: 0;
right: 0;
height: 3em;
}
.drum-viewport::before {
top: 0;
background: linear-gradient(to bottom,
hsla(0, 0%, 90%, 1),
hsla(0, 0%, 90%, 0));
}
.drum-viewport::after {
bottom: 0;
background: linear-gradient(to bottom,
hsla(0, 0%, 90%, 0),
hsla(0, 0%, 90%, 1));
}
.drum-viewport:focus::before {
background: linear-gradient(to bottom,
hsla(0, 0%, 85%, 1),
hsla(0, 0%, 85%, 0));
}
.drum-viewport:focus::after {
background: linear-gradient(to bottom,
hsla(0, 0%, 85%, 0),
hsla(0, 0%, 85%, 1));
}
.drum-item {
padding: 0.4em;
background: white;
color: hsl(210, 90%, 37%);
text-align: center;
font-weight: bold;
}
.drum-item:not(:last-child) {
border-bottom: 1px solid hsl(30, 90%, 55%);
}
.my-drum-container {
position: relative;
margin: 30px;
display: inline-block;
}
.my-drum-container::before,
.my-drum-container::after {
content: "";
position: absolute;
top: calc(50% - 2px);
width: 0.5rem;
height: 1px;
background: red;
background-position: 0 0;
background-repeat: no-repeat;
background-size: 7px 100%;
box-shadow: 0 1px 2px hsla(0, 0%, 0%, .7);
}
.my-drum-container::before {
background-image: linear-gradient(to right,
hsla(0, 0%, 0%, .7),
hsla(0, 0%, 0%, 0));
}
.my-drum-container::after {
background-position-x: 100%;
background-image: linear-gradient(to left,
hsla(0, 0%, 0%, .7),
hsla(0, 0%, 0%, 0));
}
.my-drum-container::before {
left: 0;
}
.my-drum-container::after {
right: 0;
}
.drum-viewport {
margin: 0;
padding: 0 5px;
height: 5em;
font-size: 1rem;
position: relative;
box-shadow: inset 1px 0 7px hsla(0, 0%, 0%, .7);
cursor: pointer;
}
.drum-viewport:focus {
outline: none;
box-shadow: inset 1px 0 7px hsla(0, 0%, 0%, .7),
0 0 7px 1px hsl(42, 100%, 40%);
}
.drum-viewport::before,
.drum-viewport::after {
content: "";
position: absolute;
z-index: 1;
left: 0;
right: 0;
height: 1.5em;
background: hsla(0, 0%, 0%, .8);
box-shadow: 1px 2px 7px hsla(0, 0%, 0%, .7);
}
.drum-viewport::before {
top: 0;
border-bottom: 1px solid hsla(0, 0%, 0%, .5);
}
.drum-viewport::after {
bottom: 0;
border-top: 1px solid hsla(0, 0%, 100%, .6);
}
.drum-item {
padding: 0.4em;
padding-top: .6em;
background: transparent;
color: hsl(42, 100%, 40%);
text-align: center;
font-weight: bold;
}