Library
Things I like and keep coming back to.
Type 10
Weighted 6
Retro desktops 9
Web 2.0 and early iPhone 4
Flat and Material 3
Modern 5
Soft and glass 4
Mine 1
Gel switch
Early iPhone
On, with a shine.
- A rounded blue track with a gloss band on the top half.
- The track is sunken, with a shadow on the inside.
- A round grey knob with a gradient sits at the end.
.gel-switch {
display: flex;
align-items: center;
padding: 1px;
border-radius: 999px;
border: 1px solid #1e5bb8;
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.35) 46%, rgba(255, 255, 255, 0) 50%),
linear-gradient(180deg, #3d8cf0 0%, #1e6fe0 100%);
box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.3);
}
.gel-switch .knob {
width: 28px;
height: 28px;
border-radius: 999px;
border: 1px solid #9aa0a8;
background: linear-gradient(180deg, #fff 0%, #dadde1 100%);
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}28 of 42