Skip to content

A simple image pop-up for keeping image previewing in same ratio

Notifications You must be signed in to change notification settings

guAnsunyata/vue-mobile-image-uncover

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vue-mobile-image-uncover

The simplest solution for putting varius ratio images, which you don't want to break your layout.

Live Demo

(WIP)

Usage

import { UncoverList, UncoverImage } from 'vue-mobile-image-uncover';

export default {
  ...
  components: {
    UncoverList,
    UncoverImage,
  },
  ...
}

Example

// UncoverList: the relative wrapper, which positioning the image during the animating
<UncoverList>
  <template slot-scope="{ togglePopup }">

    // UncoverImage: set a fixed height for the image in various ratio
    <UncoverImage
      image-url="http://example.com/example.png"
      height="220"
      @pop-image="togglePopup"
    />
  </template>
</UncoverList>

About

A simple image pop-up for keeping image previewing in same ratio

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published