My 5th book "50 Tips on JavaScript" is on sale. Go get it from https://50tips.dev.
Illustrated guide to 50 of the most interesting JavaScript topics.

bottom

Moving elements with translate() is better than absolute positioning (top, left, right, bottom)

If you plan to make an animation by using position: absolute and set top, left, right or bottom please don't. Just use translate. It's just better, as Paul Irish proves.

...read more

SASS: universal mixin for box model properties

I'm currently working on OrganicCSS - a micro framework based on atomic CSS concept. I'm thinking a lot for name conventions, classes and of course mixins. I decided to combine three mixins in a file called _box-model.scss. They will provide a shortcuts for margin, padding and border properties.

...read more