Giter Club home page Giter Club logo

simpleimagehover's Introduction

SimpleImageHover

SimpleImageHover jQuery plugin

Usage: $('.hoverimage').SimpleImageHover({placement:'outside'});

where .hoverimage is the selector for the images to be shown.

A minimalistic hover image plugin to show images in a larger size in a simple way.

The enlarged images are taken from the src of the original image. (So it basically uses the original image.)

Two modes: inside / outside (see "placement" option).

In "inside" mode the image itself is enlarged. This may cause troubles on your design, so it's better to set position "fixed" for the elements.

In "outside" mode a div is generated automatically which will float over the image on hover and will contain the enlarged image.

Possible options:

  • "placement" : "inside" or "outside". "inside" to enlarge the image itself. You have to take care for css of the images in this case! Make "position:static;" and set top and left css attributes! Using "outside" you get a simple pop-over with the image enlarged. (This is the default.)

  • "ratio" : how much times enlarge the images. (Default: 2)

  • "originalpane": what shall be the id of the pop-over. (To avoid id conflict. Default: hoverimage_pane)

Have a good coding! :)

simpleimagehover's People

Contributors

pragai avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.