Hello, I'm Stanko, a software engineer in Belgrade, writing mostly about JavaScript and React.

Hiding body scrollbars using CSS

1 Comments

Let me start with a little disclaimer. Just because you can, doesn’t mean you should use it. Hiding scrollbars can be bad for accessibility and user experience.

But there are rare cases where it makes sense, usually when you have scrolling effects or when modal is opened. So use it wisely.

Check the demo. And find the cross browser code below:

Read more

Internet Explorer 6 hacks, ten years after

Exactly ten years ago, on my my friend’s blog I published a blog post about Internet Explorer 6 CSS hacks. I remembered it recently, and thought it would be really cool if I republished that same post, on it’s 10th anniversary.

I added comments about the hacks from today’s perspective to give you some context. Cited parts are from the original post. Younger developers may find some things unbelievable, because browsers came a long way in the last ten years :)

So here it is.

Read more

Fake audio spectrum, using perlin noise

Few days ago, I was chatting with our design team, and we were wondering how hard would be to create a fake audio spectrum (that mimics human speech) and visualize it. I immediately said it should be easy, and that I will play with it over the weekend. Of course, I didn’t wait for the weekend, but wrote it the same evening. It was fairly straightforward, but it had few gotchas.

Result

Before you start playing with the checkboxes I advise you to read the rest of this post.

Read more

One million npm downloads

I want to brag a little - my npm packages have been downloaded more than Stats are coming from npm-stat.com. this year!

Image showing yearly download stats of my npm packages

And I finally got a real domain:

https://muffinman.io/

I’ve been quiet for the last couple of months. Mostly because I was busy with other things, both work and personal. But I do have a few small side projects I will be sharing soon.

Stay tuned!

You can fix lumpy Joy-Con using hair dryer

I love my . I have a huge draft about Switch, and how it have put the fun back in gaming for me. It takes me forever to publish it. Unfortunately, tonight I noticed that one of my Joy-Cons has weird lumps on it.

Lumpy Nintendo Switch Joy-Con

(This is the image from the internet, not mine.)

On multiple forum threads, people suggested using hair dryer to fix it. But nobody did explain how. I tried it, and in couple of minutes I managed to get it, and here is how I did it.

There are tiny inserts in the cap, and they need to go in to the tiny holes on the joystick. I had three of them fall out. To fix it, just heat it with the hair dryer (I did it for about ten seconds), carefully adjust one insert and rub it a little bit until it falls in. Repeat for each insert.

It was much easier than I thought it would be (before heating it felt impossible). Hopefully they won’t fall again, but I will probably get thumb grips to be sure.