All Projects → bmcmahen → image-zoom

bmcmahen / image-zoom

Licence: other
smooth, iOS/medium.com style thumbnail viewing

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects
Makefile
30231 projects

Projects that are alternatives of or similar to image-zoom

Yii2 Imagine
Yii 2 imagine extension
Stars: ✭ 271 (+674.29%)
Mutual labels:  thumbnails, images
Nanogallery2
a modern photo / video gallery and lightbox [JS library]
Stars: ✭ 488 (+1294.29%)
Mutual labels:  thumbnails, images
React Grid Gallery
Justified image gallery component for React
Stars: ✭ 571 (+1531.43%)
Mutual labels:  thumbnails, images
react-hover-video-player
A React component for rendering videos that play on hover, including support for mouse and touch events and a simple API for adding thumbnails and loading states.
Stars: ✭ 60 (+71.43%)
Mutual labels:  thumbnails
code2img
Open REST API to create beautiful images of code snippets with 20+ color themes and syntax highlighting support for 10+ languages.
Stars: ✭ 25 (-28.57%)
Mutual labels:  images
use-images-loaded
🖼️ Returns true once all the images inside a container are loaded
Stars: ✭ 82 (+134.29%)
Mutual labels:  images
batch-transforms
Batch equivalent of PyTorch Transforms.
Stars: ✭ 33 (-5.71%)
Mutual labels:  images
EmotionDetection
An emotion extraction system for images, that extracts emotion which will be felt by the user of viewing the image, representing them in a 2-Dimensional space that represents Arousal and Valence.
Stars: ✭ 26 (-25.71%)
Mutual labels:  images
vue-piece-slider
animated slides in a fragmented look 🐞🌳✡️📐
Stars: ✭ 95 (+171.43%)
Mutual labels:  images
micro
A not-so-micro ShareX server with support for thumbnails, deleting uploads and users.
Stars: ✭ 25 (-28.57%)
Mutual labels:  thumbnails
av.imageview
Titanium native ImageView module that extends the default Titanium ImageView with more capabilities and a different caching system.
Stars: ✭ 97 (+177.14%)
Mutual labels:  images
react-crossfade-image
react-crossfade-image - Simple React component for crossfading images - No CSS needed
Stars: ✭ 33 (-5.71%)
Mutual labels:  images
ColorVectorSpace.jl
Treat colors as if they are n-vectors for the purposes of arithmetic
Stars: ✭ 28 (-20%)
Mutual labels:  images
gopher-logos
adorable gopher logos
Stars: ✭ 106 (+202.86%)
Mutual labels:  images
yet-another-speed-dial
a modern speed dial for chrome, edge and firefox
Stars: ✭ 102 (+191.43%)
Mutual labels:  thumbnails
server-media
This repository collects icons, logos & information about game servers.
Stars: ✭ 29 (-17.14%)
Mutual labels:  images
etiketai
Etiketai is an online tool designed to label images, useful for training AI models
Stars: ✭ 63 (+80%)
Mutual labels:  images
DICOM.jl
Julia package for reading and writing DICOM (Digital Imaging and Communications in Medicine) files
Stars: ✭ 45 (+28.57%)
Mutual labels:  images
GBVS360-BMS360-ProSal
Extending existing saliency prediction models from 2D to omnidirectional images
Stars: ✭ 25 (-28.57%)
Mutual labels:  images
osbuild
Build-Pipelines for Operating System Artifacts
Stars: ✭ 95 (+171.43%)
Mutual labels:  images

image-zoom

Zoom an image to full-screen, as seen on Medium.com. It uses transforms for buttery smoothness, but should still work on older browsers given polyfills for classList & bind. Demo here.

Using React? Try react-thumbnail-zoom instead.

Installation

Install using Duo or NPM for use with browserify.

$ npm install image-zoom
var Zoom = require('bmcmahen/image-zoom');

or use the standalone build in dist using the global Imagezoom.

API

You can use markup (much like Bootstrap) for initiating zoom on certain elements.

<img class='thumb' src='inst6.jpg' data-zoom-padding='20' data-zoom-url='inst6.jpg' data-zoom-overlay='true'>
<script src='imagezoom.js'></script>

Or you can use the javascript API, like in the example below.

<img class='thumb' src='inst6.jpg'>

<script>
var ImageZoom = require('image-zoom');

var img = document.querySelector('img');
var zoom = new Imagezoom(img).overlay().padding(350);

img.onclick = function(e){
  // stop propagation if we want to retain our HTML api
  // in other parts of the site.
  e.stopPropagation();
  zoom2.show();
};

// unbind our delegate listener if we aren't
// using the HTML api.
zoom.stopListening();

</script>

.show()

Zoom in.

.hide()

Zoom out.

.overlay()

Enable the overlay when zooming into the image.

.padding(num)

Set the padding of the zoomed image.

.use(plugin)

Use a plugin.

Events

showing

shown

hiding

hidden

cancel

var zoom = require('image-zoom');
var z = zoom(document.querySelector('img'));
z.on('shown', function(){
  // our element is zoomed in
});

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].