I've started tossing little test snippets of front-end code up on CodePen lately. They're mostly just little bits of UI that I need for various projects where I need to build some kind of prototype before I start working on the real thing. CodePen seems like a great spot for these because I usually write a lot of them and they wind up piling up on my hard drive until I can barely find anything when I need it. Here's a couple recent ones I made... One's a search box with a special flexible button and one's a web version of an ios7 switch. Check 'em out!

See the Pen Variable-width Search Box by Brad Marshall (@bmarshall) on CodePen.


See the Pen iOS7 Switch by Brad Marshall (@bmarshall) on CodePen.