opts.hooks.* uses elements instead of px.