Skip to content

Install Web

sanjayaharshana edited this page Feb 2, 2018 · 1 revision

Install with Bower

You can also install and manage AnimTrap Less, CSS, JavaScript, and fonts using Bower:

$ bower install animtrap

Install with npm

You can also install animtrap using npm: $ npm install animtrap@1

require('animtrap') will load all of AnimTrap's jQuery plugins onto the jQuery object. The animtrap module itself does not export anything. You can manually load AnimTrap's jQuery plugins individually by loading the /js/*.js files under the package's top-level directory.

AnimTrap's package.json contains some additional metadata under the following keys:

  • less- path to Animtrap's main Less source file
  • style- path to AnimTrap's non-minified CSS that's been precompiled using the default settings (no customization)
Clone this wiki locally