Sent on Feb 3, 2016

Star Rating element with very little code

The rating element is one UI pattern that you’ll find everywhere on the web. I found myself building another rating element for the second time in my life a few weeks ago.

Since it’s my second time working on the same element, I wanted to challenge myself to come up with a way that uses as little code as possible. Consequently, I managed to come up with a way to build the rating element with only 50 lines of code (HTML, CSS and JavaScript combined), which is incredibly sweet!

I want to share with you how I did it in today’s article:

http://www.zell-weekeat.com/star-rating/

Have a read! :)

Stay awesome,
Zell

PS: There’s not going to be any posts from me next week since I’m going to pop off for a quick one-week break. Catch you when I’m back! :)