One of the few things I studied in the Google UX Design course is how a good UX design should be fun to use. Google didn’t exactly use the word “fun” to describe a good UX design, the exact word is “enjoyable”
“If a product is enjoyable, it means the design delights the user. The design reflects what the user may be thinking or feeling and creates a positive connection with them. A product’s design doesn’t have to be enjoyable for it to function properly. But, an enjoyable design adds to an already functional product and can enhance the user’s feelings about the experience.” - Google UX Design course
But what exactly are “micro-interactions” and how come they are related to this?
“Micro-interactions are events which have one main task - a single purpose - and they’re found all over your device and within apps. Their purpose is to delight the user; to create a moment that is engaging, welcoming and, dare we say it - human.” - UXDesign.cc
Okay, so in order to maker my site more engaging and enjoyable, I decided to add some micro-interactions/ animation to it. I’m not planning to add back all the stuff that I have got rid of, instead, I’m going to add some small other thing. One of the big reasons I decided to simplify my website in the first place is this because animations seems not work correctly on some devices.
Toggle menu (hamburger) icon 🍔
First is the toggle menu for mobile devices from UXDesign.cc with a little tweak from me:
I use React for my website but below is the plain HTML/CSS code shared by Mikael Ainalem from UXDesign.cc. I recommend you check out his article on how this icon and animation is made. It’s fascinating.
Theme toggle icon ☀️/🌙
Second, is the theme toggle icon from the top right corner:
For this one, I use React Spring to animate SVG icons based on the instruction from jfelix.info with another small tweak from me to match with the current setup from my site. You can find the source code here at GitHub.
That’s it for now. I hope you enjoy my sharing and if you have any questions, feel free to leave a comment below.