css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv
CodePen probably won't work great in this browser. We generally only support the major desktop browsers like Chrome, Firefox, Safari, and Edge. Use this one at your own risk! If you're looking to test things, try looking at Pens/Projects in Debug View.
user profile image

Based on a Dribbble by Stan Yakusevich. Drag the range thumb to see the effect.

Works best on Chrome (desktop and mobile), and Safari on iPad (oddly enough). Works decently in Firefox, but only because I added a fallback. Click the switch to reveal the real HTML5 range input.


  1. I'd love to see it change it's zoom "in" effect based on the position of the slider. I expected it visually to start coming from the left as I moved the slider in the direction. Nice pen!

  2. Peter Wise @squarecandy-1472176736 on

    Nicely done. Very cool concept! I noticed that the on/off slider only works when you click on the circle part. Some people might try and "swipe", lifting their mouse up on the non-button part. Some people might try and click on the "on" or "off" label.

  3. Oh neat. Perfect combination of opacity + scale and gradient animating.

Leave a Comment Markdown supported. Click @usernames to add to comment.

You must be logged in to comment.