Eliminates repetitive if statements — a single lookup table replaces nine if blocks.
More maintainable — to add a new mapping, just extend the map object.
Faster — fewer conditional checks and property lookups.
Safer — it won’t throw errors if a property doesn’t exist.
This one also has new CSS.
Compare this tho screenshots, one with orig. CSS, and a new one. The size difference is huge!