Giter Site home page Giter Site logo

much's Introduction

Javascript multi-touch library (scale, rotate, drag) for mobile

Demo (on mobile only): http://andrusasumets.github.io/much/

var options = {
    element: document.getElementById('id'),
    currentScale: 0.5,
    minScale: 0.1,
    maxScale: 10,
    easing: 0.8,
    callback: function(settings) {
        //returns settings object for the element 60 frames per second
    }
}

much.add(options);
much.data() // returns settings objects for all of the elements in an array
much.remove(document.getElementById('id'))
much.stop();

Author: Hans Eklund, North Kingdom

Modified, improved and packaged into a JavaScript library by Andrus Asumets.

much's People

Contributors

andrusasumets avatar plasmapower avatar

Stargazers

Emanuele Sabetta avatar  avatar Andrew Dirksen avatar Hans Eklund avatar Shakhal Levinson avatar  avatar Michel Hofmann avatar  avatar Casey Robinson avatar William Dias avatar Jim Cummins avatar  avatar Martin Sookael avatar

Watchers

Martin Sookael avatar James Cloos avatar Hans Eklund avatar  avatar

Forkers

plasmapower bddap

much's Issues

Lorem pixel cross origin request is blocked

From the Chrome console:

Access to Image at 'http://lorempixel.com/400/400/' from origin 'http://lorempixel.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://andrusasumets.github.io' is therefore not allowed access.

As a result , the demo image does not load.

This breaks the demo page on Chrome, and probably other browsers too.

Suggested solution: Don't use lorem pixel. Generate a sample image using js.

Pull request incoming.

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.