FitMe!

Resize the browser window to see the child elements fill up their parents. For more information visit github.com/lmeurs/fitme.

Example 1: Simple

My image

Example 2: Setting and altering options using data attributes

Focal point x: Focal point y: Fill mode:
My image

Example 3: Setting and altering options using the API

Focal point x: Focal point y: Fill mode:
My image