• This repository has been archived on 19/Nov/2019
  • Stars
    star
    547
  • Rank 81,254 (Top 2 %)
  • Language
    JavaScript
  • Created over 9 years ago
  • Updated over 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Not maintained. Zoom & dynamically crop images. Based on http://github.com/fat/zoom.js by @fat.

A port of @fat's simple jQuery plugin for image zooming – now with support for object-fit/object-position, powered by Velocity.js animations, complete with some pre-defined image cropping classes.

✨ Demo ✨

Differences

  • Removes Boostrap dependency
  • Adds Velocity.js dependency
  • Supports object-fit and object-position CSS properties
  • Has some classes to get you started with cropped images

To-Dos

  • Consider porting to GSAP?
  • Cleanup codebase (in line with zoom.js latest)
  • Add optional lazy/preloading if there is a wrapping <a> tag to a high-resolution image
  • Add more robust demo
  • Synchronize Velocity.js timing with CSS animation timing
  • Clean up code to allow passing a custom selector/attribute for the targeted images

Known Issues (more todos?)

  • Causes content reflow for images without (expclitly sized) containers, including floated images
  • Doesn’t work on margin: auto centered images
  • Due to animating non-transform properties there is more layout/repainting on images that are cropped

More Repositories

1

CatchMouse

Move the cursor between multiple displays using a shortcut. (Version 1.2)
HTML
411
star
2

SVG

Useful SVGs
139
star
3

Twitter-Links-beta

A browser extension to show the latest tweets that link to the current page.
JavaScript
77
star
4

TypeSmart-beta

Chrome extension that automatically formats quotes, apostrophes, dashes, and symbols with their typographically correct characters.
JavaScript
18
star
5

spawn

Async load external content (or partials) into the DOM location of an inline script tag. Transfers tag attributes to top level of inserted content. Requires jQuery.
HTML
8
star
6

illustrator-scripts

Frequently used Illustrator User Scripts by @johnwun.
JavaScript
5
star
7

Touch-Cursor

A more usable touch cursor for desktop prototypes.
HTML
5
star
8

mystify-old

Mystify your mind.
HTML
5
star
9

halftone

Generate halftone images using SVG filters.
HTML
3
star
10

cache

Dead simple external resource caching (and concatenation).
PHP
3
star
11

SitemapXML-to-OmniGraffle

Convert sitemap.xml files to structured OmniGraffle files by @fuzzymath.
2
star
12

Scroll-Progress-Beta

JavaScript
2
star
13

Browser-Extension-Boilerplate

JavaScript
2
star
14

PageSaver

Make any webpage your screensaver. Based on http://github.com/tlrobinson/WebSaver by @tlrobinson.
HTML
1
star
15

overscroll

Control native scrolling behavior on touch devices. Useful for preventing default momentum behaviors in mobile browsers.
JavaScript
1
star
16

template-old

Starter project base with a few useful libraries.
CSS
1
star
17

blocktype

1
star
18

ui-98

Windows 98 UI Kit
JavaScript
1
star
19

Sketch-Data-Lipsum

Varying lengths of placeholder text for your symbols.
1
star
20

WebSaver

A Mac OS X screen saver that displays a web page or a series of web pages. Based on http://github.com/liquidx/webviewscreensaver by @liquidx.
Objective-C
1
star
21

loader

Simple async script loader with callbacks.
JavaScript
1
star