All Projects β†’ tholman β†’ Intense Images

tholman / Intense Images

A simple library to view large images up close using simple mouse interaction, and the full screen.

Programming Languages

javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to Intense Images

React Portal
🎯 React component for transportation of modals, lightboxes, loading bars... to document.body or else.
Stars: ✭ 2,023 (-20.32%)
Mutual labels:  modal
React Native Popover View
A well-tested, adaptable, lightweight <Popover> component for react-native
Stars: ✭ 191 (-92.48%)
Mutual labels:  modal
Photoviewer
πŸŒ€ A JS plugin to view images just like in Windows.
Stars: ✭ 203 (-92%)
Mutual labels:  modal
React Modal Hook
Syntactic sugar for handling modals using React Hooks
Stars: ✭ 174 (-93.15%)
Mutual labels:  modal
React Native Modal Datetime Picker
A React-Native datetime-picker for Android and iOS
Stars: ✭ 2,412 (-5%)
Mutual labels:  modal
React Popup
React popup component
Stars: ✭ 198 (-92.2%)
Mutual labels:  modal
Dialog
πŸ‘» A simple to use, highly customizable, and powerful modal for Angular Applications
Stars: ✭ 158 (-93.78%)
Mutual labels:  modal
Jspanel4
A JavaScript library to create highly configurable floating panels, modals, tooltips, hints/notifiers/alerts or contextmenus for use in backend solutions and other web applications.
Stars: ✭ 217 (-91.45%)
Mutual labels:  modal
Baguettebox.js
⚑ Simple and easy to use lightbox script written in pure JavaScript
Stars: ✭ 2,252 (-11.3%)
Mutual labels:  modal
Wc Messagebox
基于 Vue 2.0 εΌ€ε‘ηš„ Alert, Toast, Confirm 插仢, UIδ»Ώη…§ iOS εŽŸη”Ÿ
Stars: ✭ 203 (-92%)
Mutual labels:  modal
Magnify
πŸ–Ό A jQuery plugin to view images just like in Windows. Browser support IE7+!
Stars: ✭ 177 (-93.03%)
Mutual labels:  modal
Modali
A delightful modal dialog component for React, built from the ground up to support React Hooks.
Stars: ✭ 183 (-92.79%)
Mutual labels:  modal
Pmalertcontroller
PMAlertController is a great and customizable alert that can substitute UIAlertController
Stars: ✭ 2,397 (-5.59%)
Mutual labels:  modal
Bdialog
Extend the Bootstrap Modal features, making dialog more functions and easier to use, dialog type including modal, alert, mask and toast types
Stars: ✭ 174 (-93.15%)
Mutual labels:  modal
Heyui
πŸŽ‰UI Toolkit for Web, Vue2.0 http://www.heyui.top
Stars: ✭ 2,373 (-6.54%)
Mutual labels:  modal
Ax5ui Kernel
Javascript UI Framework - AX5UI - Kernel Module
Stars: ✭ 164 (-93.54%)
Mutual labels:  modal
React Native Smart Tip
πŸ”₯πŸ”₯πŸ”₯Toast , SnackBar , Modal , Show Toast above Modal
Stars: ✭ 198 (-92.2%)
Mutual labels:  modal
React Native Simple Dialogs
βš› Cross-platform React Native dialogs based on the Modal component
Stars: ✭ 218 (-91.41%)
Mutual labels:  modal
Jquery Modal
The simplest possible modal for jQuery
Stars: ✭ 2,459 (-3.15%)
Mutual labels:  modal
React Native Modal Translucent
Remove the StatusBar background for Modal on Android
Stars: ✭ 202 (-92.04%)
Mutual labels:  modal

Intense Images

A stand alone javascript library for viewing images on the full, full screen. Using the touch/mouse position for panning. Here's a demo! You can also play with the code live on CodePen.

Instructions

Intense images is a stand alone library (no jquery, or the likes) so usage is pretty straight forward. All styling of image elements is up to the user, Intense.js only handles the creation, styling and management of the image viewer and captions.

HTML

There aren't many restrictions for the html elements you want to use to activate the Intense image viewer, the one mandatory attribute is either a src, data-image or a href, which needs to point to an image file. You can use data-image if you want to load in a different version of the image to the original source (higher resolution, for example).

<img src="./img/awesome-source.jpg" />

<!-- OR -->

<div class="anything" data-image="./img/awesome-source.jpg" />

You can also pass through titles, and subcaptions, which will appear at the bottom right of the viewer. To do this, you use the data-title and data-caption attributes.

<img src="./img/awesome-source.jpg" data-title="My beach adventure" data-caption="Thanks Sam, for the great picture"/>

JS

Intense.js is fairly robust when it comes to assigning elements to be used, its as simple as passing them to the Intense function, once they have been rendered. You can do this with document.querySelector finding your elements however you like.

<img src="./img/awesome-source.jpg" />

<script>
window.onload = function() {
	// Intensify all images on the page.
    var element = document.querySelector( 'img' );
	Intense( element );
}
</script>

Or doing multiple at once, with a classname.

<img src="./img/awesome-source.jpg" class="intense" />
<img src="./img/awesome-source.jpg" class="intense" />

<script>
window.onload = function() {
	// Intensify all images with the 'intense' classname.
    var elements = document.querySelectorAll( '.intense' );
	Intense( elements );
}
</script>

If you want, you can invert the direction of the interactions

<img src="./img/awesome-source.jpg" class="intense" />
<img src="./img/awesome-source.jpg" class="intense" />

<script>
window.onload = function() {
	// Intensify all images with the 'intense' classname.
	var elements = document.querySelectorAll( '.intense' );
	Intense( elements, {invertInteractionDirection: true});
}
</script>

CSS

There aren't any css restrictions. Although you'll want to avoid tainting the js files css with anything else (editing the base h1 tag, for instance), unless of course, thats what you want to customize.

If you wish to use the + cursor, you can find the image in the demo folder, here's the css snippet.

.your-image-class {
	cursor: url('./you-image-directory/plus_cursor.png') 25 25, auto;
}

Image/Example

Here's a quick screenshot of Intense.js in action. You should really look at the demo though, to get a full feel for the interactions.

Intense.js in action

Browser support

Intense has been tested in the latest stable builds of Safari, Chrome and Firefox. It "should work" in Internet Explorer 9 and up as well.

Other frameworks

If you're using React, check out react-intense!

License

The MIT License (MIT)

Copyright (C) 2016 ~ Tim Holman ~ [email protected]

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].