Skip to content

TIL Object Position

β€’ ~1 min read

A while ago (I guess 6 years now?) I adapted a jQuery plugin called FocusPoint to be dependency free.

Today I was messing around trying to maybe adapt this to be a web component, and learned that object-position already does exactly this, and has really great browser support.

See the Pen Object Position by Kevin Kipp (@third774) on CodePen.

So, I guess it’s time to archive that repo!

Update #

I’ve created a <focus-picker> web component to help with the selection of object-position!

Share this post

πŸ“§ Email