Skip to content

mmazzarolo/img-resizable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#img-resizable

The img-resizable extension gives a resizable property to a standard img tag.
When dragging the image it will be resized (maintaing aspect ratio) according to the image position.
For Polymer 1.0 (fixin it atm).

Install

From bower:
bower install mazzaaaaa/img-resizable

Usage

<img is="img-resizable" src="https:aaa.jpeg" downsizable restorable cursor>

The following attributes are supported:

  • position: The position of the image relative to the container.
    One of:
    • left: image will be resized dragging to the right.
    • right: image will be resized dragging to the left.
  • downsizable: If true, the image can be resized below the original size.
  • restorable: If true, the image can be restored to the orifinal size with a double tap.
  • cursor: If true, the cursor will change during the resizing of the image.

Demo

Demo

About

Resizable polymer <img>

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published