@hubton/image-offsetter@0.2.1
latest
It is unknown whether this package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers




JSR Score
52%
Published
a year ago (0.2.1)
Development
deno task build
Deployment
Use Gitflow.
deno task bundledeno publish
Usage Example
<div class="container mx-auto"> <div class="w-full js-container-anchor"></div> <div class="w-10/12 ml-auto"> <div class="w-full js-image-anchor"></div> <img src="https://placehold.co/300" class="w-full h-auto js-image"/> </div> </div>
new ImageOffsetter({ containerAnchor: document.querySelector('.js-container-anchor'), imageAnchor: document.querySelector('.js-image-anchor'), image: document.querySelector('.js-image'), // pull: 'left', // on: { // offsetChange: (offset) => console.log(offset) // }, // maxWindowWidth: window.innerWidth })
Add Package
deno add jsr:@hubton/image-offsetter
Import symbol
import * as image_offsetter from "@hubton/image-offsetter";
Import directly with a jsr specifier
import * as image_offsetter from "jsr:@hubton/image-offsetter";
Add Package
pnpm i jsr:@hubton/image-offsetter
pnpm dlx jsr add @hubton/image-offsetter
Import symbol
import * as image_offsetter from "@hubton/image-offsetter";
Add Package
yarn add jsr:@hubton/image-offsetter
yarn dlx jsr add @hubton/image-offsetter
Import symbol
import * as image_offsetter from "@hubton/image-offsetter";
Add Package
vlt install jsr:@hubton/image-offsetter
Import symbol
import * as image_offsetter from "@hubton/image-offsetter";
Add Package
npx jsr add @hubton/image-offsetter
Import symbol
import * as image_offsetter from "@hubton/image-offsetter";
Add Package
bunx jsr add @hubton/image-offsetter
Import symbol
import * as image_offsetter from "@hubton/image-offsetter";