Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mossa

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mossa

> An Italian library to move elements :it:

  • 1.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

mossa.js npm version

An Italian library to move elements :it:

install

Available on npm: npm install mossa or directly download

basic usage

Just create a new instance of mossa.js for each element you want to move.

<article>
  <h1>mossa.js</h1>
  <p>Lorem ipsum dolizzle sit amizzle, i saw beyonces tizzles and my pizzle went crizzle adipiscing my shizz. Ghetto sapien velizzle, aliquet volutpizzle, fizzle quizzle, pimpin' vel, arcu. Pellentesque gangsta tortor.</p>
  <figure>
    <img src="example.jpg">
  </figure>
</article>
new Mossa(document.getElementsByTagName('figure')[0], {
  onStartMoving: function(element, thumbnail) {
    console.log('onStartMoving: ', element, thumbnail);
  },
  onDrop: function(element) {
    console.log('onDrop: ', element);
  }
});

constructor

new Mossa(DOMElement, options);
parameters
  • DOMElement: the element that will be used for Mossa.js instantiation
  • options
    • onStartMoving(element, thumbnail): callback called when the element start moving
    • onDrop(element): callback called when the element has been dropped

support

  • chrome: latest
  • firefox: latest
  • safari: latest
  • internet explore: ?

contribute

Everyone can contribute! Finding bugs, creating issues, improving documentation, improving editor it self or creating components. Every contribution will be welcomed! :santa:

Fork it -> Branch it -> Test it -> Push it -> Pull Request it :gem:

FAQs

Package last updated on 17 Apr 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc