JSFiddle - React, Tailwind, and code Playground

by alois de gouvello

HTML

<div class="custom-select">
    <select id="fxselect" name="fxselect">
        <option value="-1" selected="">Choose an effect...</option>
        <option value="fxCorner">Corner scale</option>
        <option value="fxShinkansen">Shinkansen</option>
        <option value="fxSnake">Snake</option>
        <option value="fxShuffle">Shuffle</option>
        <option value="fxPhotoBrowse">Photo Browse</option>
        <option value="fxSlideBehind">Slide Behind</option>
        <option value="fxVacuum">Vacuum</option>
        <option value="fxHurl">Hurl it</option>
    </select>
</div>

CSS

@import url(http://fonts.googleapis.com/css?family=Lato:300, 400, 700);
 *, *:after, *:before {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    color: #5b4c5c;
    font-size: 100%;
    line-height: 1.25;
    font-family:'Lato', Arial, sans-serif;
}
a {
    color: #928792;
    text-decoration: none;
    outline: none;
}
a:hover, a:focus {
    color: #726973;
}
.custom-select {
    padding: 0;
    border: 3px solid #5b4c5c;
    width: 300px;
    margin: 20px auto 25px;
    overflow: hidden;
    font-size: 1.2em;
    background: transparent url(http://tympanus.net/Development/ItemTransitions/img/triangle_dark.png) no-repeat 94% 50%;
}
select {
    padding: 10px 15px;
    cursor: pointer;
    width: 100%;
    color: #5b4c5c;
    border: none;
    box-shadow: none;
    background-color: transparent;
    background-image: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    text-indent: 0.01px;
    text-overflow:'';
}
select:focus {
    outline: none;
}
select option {
    padding: 2px 3px !important;
        -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
select option:checked {
    background: blue;
}
select:checked option:checked {
    background: green;
}

select::selection {
    background: orange;
}

select option::selection {
    background: purple;
}

/*
select:not(:checked) {
   color: red;
}*/
select option:hover {
    color: white;
    background-color: black !important;
}
/* option[value=fxCorner]*/

JavaScript

/* Custom select style, from: https://coderwall.com/p/w7npmq and http://codepen.io/gnclmorais/pen/cHkqt */

/* http://tympanus.net/Development/ItemTransitions/index.html */