Code Monkey home page Code Monkey logo

mango's Introduction

Mango

A small medium like javascript library to zoom your images.

Install

# Using npm
npm install mango-js

# Using yarn
yarn add mango-js

Now include mango and you should be good to go.

// es6
import mango from 'mango'

// commonjs
const mango = require('mango');

Alternatively you can include a minified version of mango (or the source code, up to you) via direct file or using our CDN link.

<body>
  <script src="https://unpkg.com/mango-js"></script>
</body>

Usage

Add data-mango to your images as it follows below.

<img data-mango src="http://example.com" alt="">...</img>

Add mango css to your document.

<link rel="stylesheet" href="/path/to/file/mango.css">

Call mango anywhere in your code:

// Call me
mango();

Configuring

Not available at this time.

Running Tasks

You can run tasks with yarn or npm using the following commands:

# Build task
$ yarn build

# etc.
$ ...

Roadmap

Todo List

  • Make a better example page.
  • Add options to the plugin.
  • Refactor mango hard.

Legend: Checked boxes mean partial completion, checked and crossed items mean they're fully working.

Contributing

If you feel like smoothie is missed something please do send a message or, alternatively make a pull request or even open an issue using an appropriate label and we will go from there.

License

Code released under the MIT license.

mango's People

Contributors

marlospomin avatar

Stargazers

 avatar

Watchers

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