[
  {
    "path": ".babelrc",
    "content": "{\n  \"presets\": [\n    [\"env\", {\n      \"modules\": false\n    }]\n  ],\n  \"plugins\": [\n    \"transform-object-assign\",\n    \"external-helpers\"\n  ]\n}\n"
  },
  {
    "path": ".editorconfig",
    "content": "# editorconfig.org\n\nroot = true\n\n[*]\ncharset = utf-8\nend_of_line = lf\nindent_size = 2\nindent_style = space\ninsert_final_newline = true\ntrim_trailing_whitespace = true\n\n[*.md]\ntrim_trailing_whitespace = false\n"
  },
  {
    "path": ".eslintrc.json",
    "content": "{\n  \"env\": {\n    \"browser\": true,\n    \"es6\": true\n  },\n  \"parser\": \"babel-eslint\",\n  \"extends\": [\n    \"plugin:prettier/recommended\"\n  ],\n  \"rules\": {\n    \"prettier/prettier\": [2, {\n      \"singleQuote\": true\n    }]\n  }\n}\n"
  },
  {
    "path": ".gitattributes",
    "content": "# Enforce Unix newlines\n*.css   text eol=lf\n*.scss  text eol=lf\n*.html  text eol=lf\n*.js    text eol=lf\n*.md    text eol=lf\n*.svg   text eol=lf\n*.yml   text eol=lf\n# Don't diff or textually merge source maps\n*.map   binary"
  },
  {
    "path": ".gitignore",
    "content": "# Numerous always-ignore extensions\n*.diff\n*.err\n*.log\n*.orig\n*.rej\n*.swo\n*.swp\n*.vi\n*.zip\n*~\n\n# OS or Editor folders\n._*\n.cache\n.DS_Store\n.idea\n.project\n.settings\n.tmproj\n*.esproj\n*.sublime-project\n*.sublime-workspace\nnbproject\nThumbs.db\n\n# Folders to ignore\nbower_components\nnode_modules\n\n# Dev files to ignore\ndist\ncypress/screenshots\ncypress/videos\n"
  },
  {
    "path": ".npmignore",
    "content": "demo\ntest\nnode_modules\ncypress\n.babelrc\n"
  },
  {
    "path": ".travis.yml",
    "content": "language: node_js\nsudo: false\nnode_js:\n- 8\n\ninstall:\n- yarn\n"
  },
  {
    "path": "CONTRIBUTING.md",
    "content": "# Contributing to AOS\n\n## Bugs\n\nFound a bug? Have a problem with AOS? Please check past issues, maybe someone already had that problem. If you don't find similar issue create new, but remember to add accurate informations so that I can dig into it straight away. If it's possible add CodePen example that presents called issue.\n\n## Development process\n\n### Setup\n\n- Install all dependencies: \n  \n  ```\n  yarn\n  ```\n\n- Run rollup and dev server in watch mode:\n  \n  ```\n  yarn dev\n  ```\n\n  This will run [local-server](http://localhost:8080), build AOS and automatically refresh page on any changes (it loads content from `demo` folder).\n\n### Testing\n\nBefore you create Pull Request make sure all tests are passing.\n\nIn order to do so run:\n```\nyarn test\n```\n\nIf you want to run tests while working on the plugin (when local-server is running on), run:\n```\nyarn test:dev\n```\n\n### Commiting changes\n\nIf all tests are passing then you're good to go. Commit your changes, but remember to **not commit `dist` folder**.\nCreate well described Pull Request with as many informations as possible and wait for my answer :) I'd be happy to make a code review and put some thougths.\n"
  },
  {
    "path": "ISSUE_TEMPLATE.md",
    "content": "<!--- Provide a general summary of the issue in the Title above -->\n\n## This is:\n<!-- Select one -->\n- Bug\n- Feature request\n- Question\n- Idea\n\n<!--- If you report bug, please follow template below -->\n<!--- It will allow us to better understand problem and help you faster -->\n\n## Specifications\n\n  - AOS version:\n  - OS:\n  - Browser:\n\n## Expected Behavior\n<!--- Tell us what should happen -->\n\n## Actual Behavior\n<!--- Tell us what happens instead of the expected behavior -->\n\n## Steps to Reproduce the Problem\n<!--- Provide a link to a live example, or an unambiguous set of steps to -->\n<!--- reproduce this bug. Include code to reproduce, if relevant -->\n1.\n2.\n3.\n\n## Detailed Description\n<!--- Provide a detailed description of the change or addition you are proposing -->\n\n## Possible Solution\n<!--- Not obligatory, but suggest a fix/reason for the bug, -->\n"
  },
  {
    "path": "LICENSE",
    "content": "The MIT License (MIT)\n\nCopyright (c) 2015 Michał Sajnóg\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n"
  },
  {
    "path": "PULL_REQUEST_TEMPLATE.md",
    "content": "## Related Issue\n<!--- This project only accepts pull requests related to open issues -->\n<!--- If suggesting a new feature or change, please discuss it in an issue first -->\n<!--- If fixing a bug, there should be an issue describing it with steps to reproduce -->\n<!--- Please link to the issue here: -->\n\n## Your solution\n<!--- Plese describe your solution, have you encountered any issues along the way? -->\n\n## How Has This Been Tested?\n<!--- Please describe in detail how you tested your changes. -->\n<!--- Include details of your testing environment, and the tests you ran to -->\n<!--- see how your change affects other areas of the code, etc. -->\n\n## Screenshots (if relevant):\n"
  },
  {
    "path": "README.md",
    "content": "[![AOS - Animate on scroll library](https://s32.postimg.org/ktvt59hol/aos_header.png)](http://michalsnik.github.io/aos/)\n\n[![NPM version](https://img.shields.io/npm/v/aos/next.svg?style=flat)](https://npmjs.org/package/aos)\n[![NPM downloads](https://img.shields.io/npm/dm/aos.svg?style=flat)](https://npmjs.org/package/aos)\n[![Build Status](https://travis-ci.org/michalsnik/aos.svg?branch=master)](https://travis-ci.org/michalsnik/aos)\n[![Gitter](https://badges.gitter.im/michalsnik/aos.svg)](https://gitter.im/michalsnik/aos?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)\n\n[![Twitter Follow](https://img.shields.io/twitter/follow/michalsnik.svg?style=social)](https://twitter.com/michalsnik) [![Twitter URL](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/home?status=AOS%20-%20Animate%20on%20Scroll%20library%0Ahttps%3A//github.com/michalsnik/aos)\n\n## :exclamation::exclamation::exclamation: This is README for aos@next :exclamation::exclamation::exclamation:\n\nFor last stable release (v2) go [here](https://github.com/michalsnik/aos/tree/v2)\n\n---\n### 🚀 [Demo](http://michalsnik.github.io/aos/)\n\n### 🌟 Codepen Examples\n- [Different built-in animations](http://codepen.io/michalsnik/pen/WxNdvq)\n- [With anchor setting in use](http://codepen.io/michalsnik/pen/jrOYVO)\n- [With anchor-placement and different easings](http://codepen.io/michalsnik/pen/EyxoNm)\n- [With simple custom animations](http://codepen.io/michalsnik/pen/WxvNvE)\n\n👉 To get a better understanding how this actually works, I encourage you to check [my post on CSS-tricks](https://css-tricks.com/aos-css-driven-scroll-animation-library/).\n\n---\n\n## ⚙ Installation\n\n### Basic\n\nAdd styles in `<head>`:\n\n```html\n  <link rel=\"stylesheet\" href=\"https://unpkg.com/aos@next/dist/aos.css\" />\n```\n\nAdd script right before closing `</body>` tag, and initialize AOS:\n```html\n  <script src=\"https://unpkg.com/aos@next/dist/aos.js\"></script>\n  <script>\n    AOS.init();\n  </script>\n```\n\n### Using package managers\n\nInstall `aos` package:\n* `yarn add aos@next`\n* or `npm install --save aos@next`\n\nImport script, styles and initialize AOS:\n```js\nimport AOS from 'aos';\nimport 'aos/dist/aos.css'; // You can also use <link> for styles\n// ..\nAOS.init();\n```\n\nIn order to make it work you'll have to make sure your build process has configured styles loader, and bundles it all correctly.\nIf you're using [Parcel](https://parceljs.org/) however, it will work out of the box as provided.\n\n---\n\n\n## 🤔 How to use it?\n\n### 1. Initialize AOS:\n\n```js\nAOS.init();\n\n// You can also pass an optional settings object\n// below listed default settings\nAOS.init({\n  // Global settings:\n  disable: false, // accepts following values: 'phone', 'tablet', 'mobile', boolean, expression or function\n  startEvent: 'DOMContentLoaded', // name of the event dispatched on the document, that AOS should initialize on\n  initClassName: 'aos-init', // class applied after initialization\n  animatedClassName: 'aos-animate', // class applied on animation\n  useClassNames: false, // if true, will add content of `data-aos` as classes on scroll\n  disableMutationObserver: false, // disables automatic mutations' detections (advanced)\n  debounceDelay: 50, // the delay on debounce used while resizing window (advanced)\n  throttleDelay: 99, // the delay on throttle used while scrolling the page (advanced)\n  \n\n  // Settings that can be overridden on per-element basis, by `data-aos-*` attributes:\n  offset: 120, // offset (in px) from the original trigger point\n  delay: 0, // values from 0 to 3000, with step 50ms\n  duration: 400, // values from 0 to 3000, with step 50ms\n  easing: 'ease', // default easing for AOS animations\n  once: false, // whether animation should happen only once - while scrolling down\n  mirror: false, // whether elements should animate out while scrolling past them\n  anchorPlacement: 'top-bottom', // defines which position of the element regarding to window should trigger the animation\n\n});\n```\n\n### 2. Set animation using `data-aos` attribute:\n\n```html\n  <div data-aos=\"fade-in\"></div>\n```\n\nAnd adjust behaviour by using `data-aos-*` attributes:\n```html\n  <div\n    data-aos=\"fade-up\"\n    data-aos-offset=\"200\"\n    data-aos-delay=\"50\"\n    data-aos-duration=\"1000\"\n    data-aos-easing=\"ease-in-out\"\n    data-aos-mirror=\"true\"\n    data-aos-once=\"false\"\n    data-aos-anchor-placement=\"top-center\"\n  >\n  </div>\n```\n\n[See full list of all animations, easings and anchor placements](https://github.com/michalsnik/aos#animations)\n\n#### Anchor\n\nThere is also a setting that can be used only on per-element basis:\n* `data-aos-anchor` - element whose offset will be used to trigger animation instead of an actual one.\n\nExamples:\n```html\n<div data-aos=\"fade-up\" data-aos-anchor=\".other-element\"></div>\n```\n\nThis way you can trigger animation on one element, while you scroll to another - useful in animating fixed elements.\n\n---\n\n## API\n\nAOS object is exposed as a global variable, for now there are three methods available:\n\n  * `init` - initialize AOS\n  * `refresh` - recalculate all offsets and positions of elements (called on window resize)\n  * `refreshHard` - reinit array with AOS elements and trigger `refresh` (called on DOM changes that are related to `aos` elements)\n\nExample execution:\n```javascript\n  AOS.refresh();\n```\n\nBy default AOS is watching for DOM changes and if there are any new elements loaded asynchronously or when something is removed from DOM it calls `refreshHard` automatically. In browsers that don't support `MutationObserver` like IE you might need to call `AOS.refreshHard()` by yourself.\n\n`refresh` method is called on window resize and so on, as it doesn't require to build new store with AOS elements and should be as light as possible.\n\n---\n\n## JS Events\n\nAOS dispatches two events on document: `aos:in` and `aos:out` whenever any element animates in or out, so that you can do extra stuff in JS:\n```js\ndocument.addEventListener('aos:in', ({ detail }) => {\n  console.log('animated in', detail);\n});\n\ndocument.addEventListener('aos:out', ({ detail }) => {\n  console.log('animated out', detail);\n});\n```\n\nYou can also tell AOS to trigger custom event on specific element, by setting `data-aos-id` attribute:\n```html\n<div data-aos=\"fade-in\" data-aos-id=\"super-duper\"></div>\n```\n\nThen you'll be able to listen for two custom events then:\n- `aos:in:super-duper`\n- `aos:out:super-duper`\n\n---\n\n## Recipes:\n\n#### Adding custom animations:\nSometimes built-in animations are just not enough. Let's say you need one box to have different animation depending on resolution.\nHere's how you could do it:\n\n```css\n[data-aos=\"new-animation\"] {\n  opacity: 0;\n  transition-property: transform, opacity;\n\n  &.aos-animate {\n    opacity: 1;\n  }\n\n  @media screen and (min-width: 768px) {\n    transform: translateX(100px);\n\n    &.aos-animate {\n      transform: translateX(0);\n    }\n  }\n}\n```\nThen use it in HTML:\n```html\n<div data-aos=\"new-animation\"></div>\n```\nThe element will only animate opacity on mobile devices, but from 768px width it'll also slide from right to left.\n\n#### Adding custom easing:\nSimilar to animations you can add custom easings:\n```css\n[data-aos] {\n  body[data-aos-easing=\"new-easing\"] &,\n  &[data-aos][data-aos-easing=\"new-easing\"] {\n    transition-timing-function: cubic-bezier(.250, .250, .750, .750);\n  }\n}\n```\n\n#### Customizing default animations distance\nDefault distance for built-in animations is 100px. As long as you're using SCSS though, you can override it:\n```css\n$aos-distance: 200px; // It has to be above import\n@import 'node_modules/aos/src/sass/aos.scss';\n```\nYou have to however configure your build process to allow it to import styles from `node_modules` beforehand.\n\n#### Integrating external CSS animation library (e.g. Animate.css):\nUse `animatedClassName` to change default behaviour of AOS, to apply class names placed inside `data-aos` on scroll.\n\n```html\n<div data-aos=\"fadeInUp\"></div>\n```\n\n```js\nAOS.init({\n  useClassNames: true,\n  initClassName: false,\n  animatedClassName: 'animated',\n});\n```\n\nThe above element will get two classes: `animated` and `fadeInUp`. Using different combinations of the three above settings, you should be able to integrate any external CSS animation library.\n\nExternal libraries however don't care too much about animation state before the actual animation. So if you want those elements to be not visible before scrolling, you might need to add similar styles:\n```css\n[data-aos] {\n  visibility: hidden;\n}\n[data-aos].animated {\n  visibility: visible;\n}\n```\n\n---\n\n## Caveats:\n\n#### setting: `duration`, `delay`\n\nDuration and delay accept values from 50 to 3000, with step 50ms, it's because those are handled by css, and to not make css longer than it is already I implemented only a subset. I believe those should cover most cases.\n\nIf not, you can write simple CSS that will add another duration, for example:\n\n```css\n  body[data-aos-duration='4000'] [data-aos],\n  [data-aos][data-aos][data-aos-duration='4000'] {\n    transition-duration: 4000ms;\n  }\n```\nThis code will add 4000ms duration available for you to set on AOS elements, or to set as global duration while initializing AOS script.\nNotice that double `[data-aos][data-aos]` - it's not a mistake, it is a trick, to make individual settings more important than global, without need to write ugly \"!important\" there :)\n\nExample usage:\n```html\n  <div data-aos=\"fade-in\" data-aos-duration=\"4000\"></div>\n```\n\n---\n\n## Predefined options\n\n### Animations\n\n  * Fade animations:\n    * fade\n    * fade-up\n    * fade-down\n    * fade-left\n    * fade-right\n    * fade-up-right\n    * fade-up-left\n    * fade-down-right\n    * fade-down-left\n\n  * Flip animations:\n    * flip-up\n    * flip-down\n    * flip-left\n    * flip-right\n\n  * Slide animations:\n    * slide-up\n    * slide-down\n    * slide-left\n    * slide-right\n\n  * Zoom animations:\n    * zoom-in\n    * zoom-in-up\n    * zoom-in-down\n    * zoom-in-left\n    * zoom-in-right\n    * zoom-out\n    * zoom-out-up\n    * zoom-out-down\n    * zoom-out-left\n    * zoom-out-right\n\n### Anchor placements:\n\n  * top-bottom\n  * top-center\n  * top-top\n  * center-bottom\n  * center-center\n  * center-top\n  * bottom-bottom\n  * bottom-center\n  * bottom-top\n\n### Easing functions:\n\n  * linear\n  * ease\n  * ease-in\n  * ease-out\n  * ease-in-out\n  * ease-in-back\n  * ease-out-back\n  * ease-in-out-back\n  * ease-in-sine\n  * ease-out-sine\n  * ease-in-out-sine\n  * ease-in-quad\n  * ease-out-quad\n  * ease-in-out-quad\n  * ease-in-cubic\n  * ease-out-cubic\n  * ease-in-out-cubic\n  * ease-in-quart\n  * ease-out-quart\n  * ease-in-out-quart\n\n---\n\n## ❔Questions\n\nIf you found a bug, have a question or an idea, please check [AOS contribution guide](CONTRIBUTING.md) and don't hesitate to create new issues.\n"
  },
  {
    "path": "cypress/integration/aos_spec.js",
    "content": "describe('AOS', function() {\n  before(() => {\n    cy.visit('/');\n    cy.initAOS();\n  });\n\n  it('Should be defined', function() {\n    cy\n      .window()\n      .its('AOS')\n      .should('exist');\n  });\n\n  it('Should have init method', function() {\n    cy\n      .window()\n      .its('AOS.init')\n      .should('exist');\n  });\n\n  it('Should have refresh method', function() {\n    cy\n      .window()\n      .its('AOS.refresh')\n      .should('exist');\n  });\n\n  it('Should have refreshHard method', function() {\n    cy\n      .window()\n      .its('AOS.refreshHard')\n      .should('exist');\n  });\n\n  it('Should add aos-init class on all elements', function() {\n    cy.get('.aos-init').should('have.length', 24);\n  });\n\n  it('Should add aos-animate class on all visible elements', () => {\n    cy.get('.aos-animate').should('have.length', 6);\n  });\n\n  it('Should add or remove aos-animate classes regarding to their visibility after scroll', () => {\n    cy.scrollTo(0, 200);\n    cy.get('.aos-animate').should('have.length', 9);\n\n    cy.scrollTo(0, 800);\n    cy.get('.aos-animate').should('have.length', 15);\n\n    cy.scrollTo('top');\n    cy.get('.aos-animate').should('have.length', 6);\n  });\n\n  it('Should refresh on window resize and orientation change', () => {\n    cy.viewport('iphone-6');\n    cy.get('.aos-animate').should('have.length', 2);\n\n    cy.scrollTo(0, 100);\n    cy.get('.aos-animate').should('have.length', 2);\n\n    cy.viewport('iphone-6', 'landscape');\n    cy.get('.aos-animate').should('have.length', 4);\n\n    cy.scrollTo(0, 450);\n    cy.get('.aos-animate').should('have.length', 6);\n\n    cy.scrollTo('top');\n    cy.get('.aos-animate').should('have.length', 2);\n\n    cy.viewport(1280, 720);\n    cy.get('.aos-animate').should('have.length', 6);\n  });\n});\n"
  },
  {
    "path": "cypress/integration/js_events_spec.js",
    "content": "describe('JS Events', function() {\n  context('default events', function() {\n    let aosInStub;\n    let aosOutStub;\n\n    before(() => {\n      aosInStub = cy.stub();\n      aosOutStub = cy.stub();\n      cy\n        .visit('/')\n        .document()\n        .then(document => {\n          document.addEventListener('aos:in', aosInStub);\n          document.addEventListener('aos:out', aosOutStub);\n        })\n        .initAOS();\n    });\n\n    it('Should trigger custom events', function() {\n      expect(aosInStub).to.have.callCount(6);\n      expect(aosOutStub).to.be.not.called;\n\n      cy.scrollTo(0, 800);\n      cy.wait(0, () => {\n        expect(aosInStub).to.have.callCount(15);\n      });\n\n      cy.scrollTo('top');\n      cy.wait(0, () => {\n        expect(aosInStub).to.have.callCount(15);\n        expect(aosOutStub).to.have.callCount(9);\n      });\n    });\n  });\n\n  context('custom events', function() {\n    let aosInStub;\n    let aosOutStub;\n\n    before(() => {\n      aosInStub = cy.stub();\n      aosOutStub = cy.stub();\n      cy\n        .visit('/')\n        .document()\n        .then(document => {\n          document.addEventListener('aos:in:super-duper', aosInStub);\n          document.addEventListener('aos:out:super-duper', aosOutStub);\n        })\n        .initAOS();\n    });\n\n    it('Should trigger custom events', function() {\n      expect(aosInStub).to.be.not.called;\n      expect(aosOutStub).to.be.not.called;\n\n      cy.scrollTo(0, 350);\n      cy.wait(0, () => {\n        expect(aosInStub).to.be.calledOnce;\n      });\n\n      cy.scrollTo('top');\n      cy.wait(0, () => {\n        expect(aosOutStub).to.be.calledOnce;\n      });\n    });\n  });\n});\n"
  },
  {
    "path": "cypress/integration/mutation_spec.js",
    "content": "describe('mutation observer', function() {\n  before(() => {\n    cy.visit('/async.html');\n    cy.initAOS();\n  });\n\n  it('Should not animate any items if not present', function() {\n    cy.get('.aos-item').should('have.length', 0);\n    cy.get('.aos-animate').should('have.length', 0);\n  });\n\n  it('Should animate new items as they appear', function() {\n    cy.dispatchEvent('add-aos-item');\n    cy.get('.aos-item').should('have.length', 1);\n    cy.get('.aos-animate').should('have.length', 1);\n\n    cy.dispatchEvent('add-aos-item');\n    cy.get('.aos-item').should('have.length', 2);\n    cy.get('.aos-animate').should('have.length', 2);\n\n    cy.dispatchEvent('add-aos-item');\n    cy.get('.aos-item').should('have.length', 3);\n    cy.get('.aos-animate').should('have.length', 3);\n\n    cy.dispatchEvent('add-aos-item', 3);\n    cy.get('.aos-item').should('have.length', 6);\n    cy.get('.aos-animate').should('have.length', 6);\n\n    cy.dispatchEvent('add-aos-item', 3);\n    cy.get('.aos-item').should('have.length', 9);\n    cy.get('.aos-animate').should('have.length', 6);\n\n    cy.dispatchEvent('add-aos-item', 15);\n    cy.get('.aos-item').should('have.length', 24);\n    cy.get('.aos-animate').should('have.length', 6);\n  });\n\n  it('Should properly animate not visible items on scroll', () => {\n    cy.scrollTo(0, 200);\n    cy.get('.aos-animate').should('have.length', 9);\n\n    cy.scrollTo('bottom');\n    cy.get('.aos-animate').should('have.length', 24);\n\n    cy.scrollTo('top');\n    cy.get('.aos-animate').should('have.length', 6);\n  });\n\n  it('Should gracefully handle nodes deletion', function() {\n    Cypress.$('.aos-item')[1].remove();\n    cy.get('.aos-item').should('have.length', 23);\n    cy.get('.aos-animate').should('have.length', 6);\n  });\n});\n"
  },
  {
    "path": "cypress/integration/settings_anchorPlacement_spec.js",
    "content": "describe('setting: anchorPlacement', function() {\n  beforeEach(() => {\n    cy.visit('/index.html');\n    cy.viewport(1280, 700);\n  });\n\n  context('global setting', () => {\n    it('Should be respected by all elements', () => {\n      cy.initAOS({\n        offset: 0,\n        anchorPlacement: 'top-center'\n      });\n\n      cy.get('.aos-animate').should('have.length', 6);\n\n      cy.scrollTo(0, 300);\n      cy.get('.aos-animate').should('have.length', 9);\n    });\n\n    it('Should respect default offset', () => {\n      cy.initAOS({\n        offset: 120,\n        anchorPlacement: 'top-center'\n      });\n\n      cy.get('.aos-animate').should('have.length', 3);\n\n      cy.scrollTo(0, 120);\n      cy.get('.aos-animate').should('have.length', 6);\n    });\n  });\n\n  context('inline setting', () => {\n    it('Should override global setting and reset default offset', () => {\n      cy.document().then(document => {\n        const el = document.querySelector('[data-id=\"6\"]');\n        el.dataset.aosAnchorPlacement = 'bottom-center';\n      });\n\n      cy.initAOS({\n        offset: 400,\n        anchorPlacement: 'top-center'\n      });\n\n      cy.get('[data-id=\"6\"]').should('not.have.class', 'aos-animate');\n\n      cy.scrollTo(0, 290);\n      cy.get('[data-id=\"6\"]').should('not.have.class', 'aos-animate');\n\n      cy.scrollTo(0, 300);\n      cy.get('[data-id=\"6\"]').should('have.class', 'aos-animate');\n    });\n\n    it('Should respect inline offset', () => {\n      cy.document().then(document => {\n        const el = document.querySelector('[data-id=\"6\"]');\n        el.dataset.aosAnchorPlacement = 'bottom-center';\n        el.dataset.aosOffset = 100;\n      });\n\n      cy.initAOS({\n        offset: 400,\n        anchorPlacement: 'top-center'\n      });\n\n      cy.get('[data-id=\"6\"]').should('not.have.class', 'aos-animate');\n\n      cy.scrollTo(0, 300);\n      cy.get('[data-id=\"6\"]').should('not.have.class', 'aos-animate');\n\n      cy.scrollTo(0, 400);\n      cy.get('[data-id=\"6\"]').should('have.class', 'aos-animate');\n    });\n  });\n});\n"
  },
  {
    "path": "cypress/integration/settings_anchor_spec.js",
    "content": "describe('setting: anchor', function() {\n  before(() => {\n    cy.visit('/anchor.html');\n    cy.viewport(1280, 700);\n    cy.initAOS({\n      offset: 0\n    });\n  });\n\n  it('Should properly animate elements according to anchor positions', () => {\n    cy.get('.aos-animate').should('have.length', 0);\n\n    cy.scrollTo(0, 50);\n    cy.get('.aos-animate').should('have.length', 1);\n    cy.get('[data-id=\"1\"]').should('have.class', 'aos-animate');\n\n    cy.scrollTo(0, 550);\n    cy.get('.aos-animate').should('have.length', 2);\n    cy.get('[data-id=\"2\"]').should('have.class', 'aos-animate');\n\n    cy.scrollTo(0, 750);\n    cy.get('.aos-animate').should('have.length', 3);\n    cy.get('[data-id=\"4\"]').should('have.class', 'aos-animate');\n\n    cy.scrollTo(0, 1050);\n    cy.get('.aos-animate').should('have.length', 4);\n    cy.get('[data-id=\"3\"]').should('have.class', 'aos-animate');\n\n    cy.scrollTo(0, 1250);\n    cy.get('.aos-animate').should('have.length', 5);\n    cy.get('[data-id=\"5\"]').should('have.class', 'aos-animate');\n\n    cy.scrollTo(0, 1450);\n    cy.get('.aos-animate').should('have.length', 6);\n    cy.get('[data-id=\"7\"]').should('have.class', 'aos-animate');\n\n    cy.scrollTo(0, 1750);\n    cy.get('.aos-animate').should('have.length', 7);\n    cy.get('[data-id=\"6\"]').should('have.class', 'aos-animate');\n\n    cy.scrollTo(0, 1950);\n    cy.get('.aos-animate').should('have.length', 8);\n    cy.get('[data-id=\"8\"]').should('have.class', 'aos-animate');\n\n    cy.scrollTo(0, 2450);\n    cy.get('.aos-animate').should('have.length', 9);\n    cy.get('[data-id=\"9\"]').should('have.class', 'aos-animate');\n  });\n});\n"
  },
  {
    "path": "cypress/integration/settings_animatedClassName_spec.js",
    "content": "describe('setting: animatedClassName', function() {\n  context('with: \"rawr\"', function() {\n    before(() => {\n      cy.visit('/');\n      cy.initAOS({\n        animatedClassName: 'rawr'\n      });\n    });\n\n    it('Should set proper class names on AOS elements', function() {\n      cy.get('.aos-animate').should('have.length', 0);\n      cy.get('.rawr').should('have.length', 6);\n\n      cy.scrollTo(0, 800);\n      cy.get('.aos-animate').should('have.length', 0);\n      cy.get('.rawr').should('have.length', 15);\n    });\n  });\n\n  context('with: null', function() {\n    before(() => {\n      cy.visit('/');\n      cy.initAOS({\n        animatedClassName: null\n      });\n    });\n\n    it('Should not set class names on AOS elements on scroll', function() {\n      cy.get('.aos-animate').should('have.length', 0);\n      cy.scrollTo(0, 800);\n      cy.get('.aos-animate').should('have.length', 0);\n    });\n  });\n});\n"
  },
  {
    "path": "cypress/integration/settings_delay_spec.js",
    "content": "describe('setting: delay', function() {\n  before(() => {\n    cy.visit('/');\n  });\n\n  it('Should set default delay attribue on body', function() {\n    cy.initAOS();\n    cy.get('body').should('have.attr', 'data-aos-delay', '0');\n  });\n\n  it('Should respect global delay setting and set attribue on body', function() {\n    cy.initAOS({\n      delay: 100\n    });\n    cy.get('body').should('have.attr', 'data-aos-delay', '100');\n  });\n});\n"
  },
  {
    "path": "cypress/integration/settings_disableMutationObserver_spec.js",
    "content": "describe('setting: disableMutationObserver', function() {\n  before(() => {\n    cy.visit('/async.html');\n    cy.initAOS({\n      disableMutationObserver: true\n    });\n  });\n\n  it('Should not detect any changes in DOM, and thus not animate any elements as a result', function() {\n    cy.dispatchEvent('add-aos-item', 20);\n    cy.get('.aos-item').should('have.length', 20);\n    cy.get('.aos-animate').should('have.length', 0);\n  });\n\n  it('Should not animate dynamically loaded elements on scroll', function() {\n    cy.scrollTo('bottom');\n    cy.get('.aos-animate').should('have.length', 0);\n  });\n});\n"
  },
  {
    "path": "cypress/integration/settings_disable_spec.js",
    "content": "describe('setting: disable', function() {\n  beforeEach(() => {\n    cy.visit('/');\n  });\n\n  it('Should properly disable AOS', function() {\n    cy.initAOS({\n      disable: true\n    });\n\n    cy.get('.aos-item[data-aos]').should('have.length', 0);\n    cy.get('.aos-init').should('have.length', 0);\n    cy.get('.aos-animate').should('have.length', 0);\n  });\n\n  it('Should respect function passed as \"disable\" value', function() {\n    cy.viewport(360, 420);\n\n    cy.window().then(({ AOS, innerWidth }) => {\n      AOS.init({\n        disable: () => innerWidth < 400\n      });\n    });\n\n    cy.get('.aos-item[data-aos]').should('have.length', 0);\n    cy.get('.aos-init').should('have.length', 0);\n    cy.get('.aos-animate').should('have.length', 0);\n  });\n});\n"
  },
  {
    "path": "cypress/integration/settings_duration_spec.js",
    "content": "describe('setting: duration', function() {\n  before(() => {\n    cy.visit('/');\n  });\n\n  it('Should set default duration attribue on body', function() {\n    cy.initAOS();\n    cy.get('body').should('have.attr', 'data-aos-duration', '400');\n  });\n\n  it('Should respect global duration setting and set attribue on body', function() {\n    cy.initAOS({\n      duration: 2000\n    });\n    cy.get('body').should('have.attr', 'data-aos-duration', '2000');\n  });\n});\n"
  },
  {
    "path": "cypress/integration/settings_easing_spec.js",
    "content": "describe('setting: easing', function() {\n  before(() => {\n    cy.visit('/');\n  });\n\n  it('Should set default easing attribue on body', function() {\n    cy.initAOS();\n    cy.get('body').should('have.attr', 'data-aos-easing', 'ease');\n  });\n\n  it('Should respect global easing setting and set attribue on body', function() {\n    cy.initAOS({\n      easing: 'ease-in-sine'\n    });\n    cy.get('body').should('have.attr', 'data-aos-easing', 'ease-in-sine');\n  });\n});\n"
  },
  {
    "path": "cypress/integration/settings_initClassName_spec.js",
    "content": "describe('setting: initClassName', function() {\n  context('with: \"rawr\"', function() {\n    before(() => {\n      cy.visit('/');\n      cy.initAOS({\n        initClassName: 'rawr'\n      });\n    });\n\n    it('Should set proper class names on AOS elements', function() {\n      cy.get('.aos-init').should('have.length', 0);\n      cy.get('.rawr').should('have.length', 24);\n    });\n  });\n\n  context('with: null', function() {\n    before(() => {\n      cy.visit('/');\n      cy.initAOS({\n        initClassName: null\n      });\n    });\n\n    it('Should not set initial class name on AOS elements', function() {\n      cy.get('.aos-init').should('have.length', 0);\n    });\n  });\n});\n"
  },
  {
    "path": "cypress/integration/settings_mirror.js",
    "content": "describe('setting: mirror', function() {\n  before(() => {\n    cy.visit('/');\n    cy.viewport(1280, 650);\n    cy.initAOS({\n      mirror: true,\n      offset: 50\n    });\n  });\n\n  it('Should animate in and out', function() {\n    cy.get('.aos-animate').should('have.length', 6);\n\n    cy.scrollTo(0, 50);\n    cy.get('.aos-animate').should('have.length', 9);\n    cy\n      .get('.aos-init')\n      .eq(0)\n      .should('have.class', 'aos-animate');\n\n    cy.scrollTo(0, 300);\n    cy.get('.aos-animate').should('have.length', 6);\n    cy\n      .get('.aos-init')\n      .eq(0)\n      .should('not.have.class', 'aos-animate');\n\n    cy.scrollTo(0, 350);\n    cy.get('.aos-animate').should('have.length', 9);\n    cy\n      .get('.aos-init')\n      .eq(3)\n      .should('have.class', 'aos-animate');\n\n    cy.scrollTo(0, 600);\n    cy.get('.aos-animate').should('have.length', 6);\n    cy\n      .get('.aos-init')\n      .eq(3)\n      .should('not.have.class', 'aos-animate');\n\n    cy.scrollTo(0, 650);\n    cy.get('.aos-animate').should('have.length', 9);\n  });\n});\n"
  },
  {
    "path": "cypress/integration/settings_offset_spec.js",
    "content": "describe('setting: offset', function() {\n  context('global', () => {\n    before(() => {\n      cy.visit('/');\n    });\n\n    context('400px', () => {\n      before(() => {\n        cy.initAOS({\n          offset: 400\n        });\n      });\n\n      it('Should animate 3 items', function() {\n        cy.get('.aos-animate').should('have.length', 3);\n      });\n\n      it('Should animate next 3 items on scroll', function() {\n        cy.scrollTo(0, 50);\n        cy.get('.aos-animate').should('have.length', 6);\n      });\n    });\n\n    context('0px', () => {\n      before(() => {\n        cy.initAOS({\n          offset: 0\n        });\n      });\n\n      it('Should animate 9 items', function() {\n        cy.get('.aos-animate').should('have.length', 9);\n        cy.scrollTo(0, 50);\n        cy.get('.aos-animate').should('have.length', 9);\n      });\n    });\n  });\n\n  context('inline', () => {\n    before(() => {\n      cy.visit('/offset.html');\n      cy.initAOS();\n      cy.viewport(1280, 500);\n    });\n\n    it('Should properly tigger all animations', function() {\n      cy.get('.aos-animate').should('have.length', 7);\n      cy.scrollTo(0, 1 * 150);\n      cy.get('.aos-animate').should('have.length', 8);\n      cy.scrollTo(0, 2 * 150);\n      cy.get('.aos-animate').should('have.length', 10);\n      cy.scrollTo(0, 3 * 150);\n      cy.get('.aos-animate').should('have.length', 11);\n      cy.scrollTo(0, 4 * 150);\n      cy.get('.aos-animate').should('have.length', 13);\n      cy.scrollTo(0, 5 * 150);\n      cy.get('.aos-animate').should('have.length', 14);\n      cy.scrollTo(0, 6 * 150);\n      cy.get('.aos-animate').should('have.length', 16);\n      cy.scrollTo(0, 7 * 150);\n      cy.get('.aos-animate').should('have.length', 17);\n      cy.scrollTo(0, 8 * 150);\n      cy.get('.aos-animate').should('have.length', 19);\n      cy.scrollTo(0, 9 * 150);\n      cy.get('.aos-animate').should('have.length', 20);\n      cy.scrollTo(0, 10 * 150);\n      cy.get('.aos-animate').should('have.length', 22);\n      cy.scrollTo(0, 11 * 150);\n      cy.get('.aos-animate').should('have.length', 23);\n      cy.scrollTo(0, 12 * 150);\n      cy.get('.aos-animate').should('have.length', 25);\n      cy.scrollTo(0, 13 * 150);\n      cy.get('.aos-animate').should('have.length', 26);\n      cy.scrollTo(0, 14 * 150);\n      cy.get('.aos-animate').should('have.length', 27);\n    });\n  });\n});\n"
  },
  {
    "path": "cypress/integration/settings_once_spec.js",
    "content": "describe('setting: once', function() {\n  context('global', () => {\n    before(() => {\n      cy.visit('/');\n      cy.initAOS({\n        once: true\n      });\n    });\n\n    it('Should add aos-animate class on all visible elements', () => {\n      cy.get('.aos-animate').should('have.length', 6);\n    });\n\n    it('Should add aos-animate class to all visible elements after scroll', () => {\n      cy.scrollTo(0, 200);\n      cy.get('.aos-animate').should('have.length', 9);\n\n      cy.scrollTo(0, 800);\n      cy.get('.aos-animate').should('have.length', 15);\n    });\n\n    it('Should not remove aos-animate class after scrolling up', () => {\n      cy.scrollTo(0, 0);\n      cy.get('.aos-animate').should('have.length', 15);\n    });\n  });\n\n  context('inline', () => {\n    before(() => {\n      cy.visit('/once.html');\n      cy.initAOS();\n    });\n\n    it('Should add aos-animate class on all visible elements', () => {\n      cy.get('.aos-animate').should('have.length', 6);\n    });\n\n    it('Should add aos-animate class to all visible elements after scroll', () => {\n      cy.scrollTo(0, 200);\n      cy.get('.aos-animate').should('have.length', 9);\n\n      cy.scrollTo('bottom');\n      cy.get('.aos-animate').should('have.length', 21);\n    });\n\n    it('Should not remove aos-animate class after scrolling up', () => {\n      cy.scrollTo(0, 0);\n      cy.get('.aos-animate').should('have.length', 11);\n      cy\n        .get('.aos-init')\n        .eq(8)\n        .should('have.class', 'aos-animate');\n      cy\n        .get('.aos-init')\n        .eq(10)\n        .should('have.class', 'aos-animate');\n      cy\n        .get('.aos-init')\n        .eq(12)\n        .should('have.class', 'aos-animate');\n      cy\n        .get('.aos-init')\n        .eq(16)\n        .should('have.class', 'aos-animate');\n      cy\n        .get('.aos-init')\n        .eq(20)\n        .should('have.class', 'aos-animate');\n    });\n  });\n});\n"
  },
  {
    "path": "cypress/integration/settings_startEvent_spec.js",
    "content": "describe('setting: startEvent', function() {\n  beforeEach(() => {\n    cy.visit('/');\n  });\n\n  it('Should allow to initialize AOS on custom event', function() {\n    cy.initAOS({\n      startEvent: 'customEvent'\n    });\n\n    cy.get('.aos-init').should('have.length', 0);\n    cy.dispatchEvent('customEvent');\n    cy.get('.aos-init').should('have.length', 24);\n  });\n\n  it('Should properly initialize on \"load\" event', function() {\n    cy.initAOS({\n      startEvent: 'load'\n    });\n\n    cy.window().then(window => window.dispatchEvent(new Event('load')));\n\n    cy.get('.aos-init').should('have.length', 24);\n  });\n\n  it(\"Shouldn't initialize when event is not dispatched\", function() {\n    cy.initAOS({\n      startEvent: 'another-event-name'\n    });\n\n    cy.get('.aos-init').should('have.length', 0);\n  });\n});\n"
  },
  {
    "path": "cypress/integration/settings_useClassNames.js",
    "content": "describe('setting: useClassNames', function() {\n  context('just useClassNames', function() {\n    before(() => {\n      cy.visit('/animatecss.html');\n      cy.initAOS({\n        useClassNames: true\n      });\n    });\n\n    it('Should set proper custom class names on AOS elements', function() {\n      cy.get('.aos-animate').should('have.length', 6);\n      cy.get('.fadeInUp').should('have.length', 6);\n\n      cy.scrollTo(0, 800);\n      cy.get('.aos-animate').should('have.length', 15);\n      cy.get('.fadeInUp').should('have.length', 15);\n    });\n  });\n\n  context('with animatedClassName and initClassName', function() {\n    before(() => {\n      cy.visit('/animatecss.html');\n      cy.initAOS({\n        useClassNames: true,\n        initClassName: false,\n        animatedClassName: 'animate'\n      });\n    });\n\n    it('Should set proper custom class names on AOS elements', function() {\n      cy.get('.aos-init').should('have.length', 0);\n      cy.get('.aos-animate').should('have.length', 0);\n\n      cy.get('.animate').should('have.length', 6);\n      cy.get('.fadeInUp').should('have.length', 6);\n\n      cy.scrollTo(0, 800);\n      cy.get('.aos-animate').should('have.length', 0);\n      cy.get('.animate').should('have.length', 15);\n      cy.get('.fadeInUp').should('have.length', 15);\n    });\n  });\n});\n"
  },
  {
    "path": "cypress/plugins/index.js",
    "content": "module.exports = (on, config) => {\n  on('before:browser:launch', (browser = {}, args) => {\n    console.log(browser, args); // see what all is in here!\n\n    if (browser.name === 'chrome') {\n      args.push('--disable-gpu');\n      return args;\n    }\n  });\n};\n"
  },
  {
    "path": "cypress/support/commands.js",
    "content": "Cypress.Commands.add('initAOS', settings => {\n  cy.window().then(({ AOS }) => {\n    AOS.init(settings);\n  });\n});\n\nCypress.Commands.add('dispatchEvent', (eventName, times = 1) => {\n  cy.window().then(window => {\n    const event = new Event(eventName);\n    for (let i = 0; i < times; i++) {\n      window.document.dispatchEvent(event);\n    }\n  });\n});\n"
  },
  {
    "path": "cypress/support/index.js",
    "content": "import './commands';\n"
  },
  {
    "path": "cypress.json",
    "content": "{\n  \"baseUrl\": \"http://127.0.0.1:8080\",\n  \"viewportWidth\": 1280,\n  \"viewportHeight\": 720\n}\n"
  },
  {
    "path": "demo/anchor.html",
    "content": "<!DOCTYPE html>\n<html>\n  <head>\n    <meta charset=\"utf-8\">\n    <title>AOS - Animate on scroll library</title>\n    <meta name=\"viewport\" content=\"width=device-width\">\n    <link rel=\"stylesheet\" href=\"css/styles.css\" />\n    <link rel=\"stylesheet\" href=\"dist/aos.css\" />\n    <!--[if lt IE 9]>\n    <script src=\"//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js\"></script>\n    <![endif]-->\n  </head>\n  <body>\n    <div class=\"aos-anchors\">\n      <div class=\"aos-anchors__lines\"></div>\n      <div class=\"aos-anchors__sidebar\">\n        <div data-id=\"1\" data-aos=\"fade-up\" data-aos-anchor=\"[data-anchor-id='1']\" data-aos-anchor-placement=\"top-top\">\n          Anchor: 1\n        </div>\n        <div data-id=\"2\" data-aos=\"fade-up\" data-aos-anchor=\"[data-anchor-id='2']\" data-aos-anchor-placement=\"center-top\">\n          Anchor: 2\n        </div>\n        <div data-id=\"3\" data-aos=\"fade-up\" data-aos-anchor=\"[data-anchor-id='3']\" data-aos-anchor-placement=\"bottom-top\">\n          Anchor: 3\n        </div>\n        <div data-id=\"4\" data-aos=\"fade-up\" data-aos-anchor=\"[data-anchor-id='4']\" data-aos-anchor-placement=\"top-center\">\n          Anchor: 4\n        </div>\n        <div data-id=\"5\" data-aos=\"fade-up\" data-aos-anchor=\"[data-anchor-id='5']\" data-aos-anchor-placement=\"center-center\">\n          Anchor: 5\n        </div>\n        <div data-id=\"6\" data-aos=\"fade-up\" data-aos-anchor=\"[data-anchor-id='6']\" data-aos-anchor-placement=\"bottom-center\">\n          Anchor: 6\n        </div>\n        <div data-id=\"7\" data-aos=\"fade-up\" data-aos-anchor=\"[data-anchor-id='7']\" data-aos-anchor-placement=\"top-bottom\">\n          Anchor: 7\n        </div>\n        <div data-id=\"8\" data-aos=\"fade-up\" data-aos-anchor=\"[data-anchor-id='8']\" data-aos-anchor-placement=\"center-bottom\">\n          Anchor: 8\n        </div>\n        <div data-id=\"9\" data-aos=\"fade-up\" data-aos-anchor=\"[data-anchor-id='9']\" data-aos-anchor-placement=\"bottom-bottom\">\n          Anchor: 9\n        </div>\n      </div>\n      <div class=\"aos-anchors__content\">\n        <div data-anchor-id=\"1\" data-placement=\"top-top\"></div>\n        <div data-anchor-id=\"2\" data-placement=\"center-top\"></div>\n        <div data-anchor-id=\"3\" data-placement=\"bottom-top\"></div>\n        <div data-anchor-id=\"4\" data-placement=\"top-center\"></div>\n        <div data-anchor-id=\"5\" data-placement=\"center-center\"></div>\n        <div data-anchor-id=\"6\" data-placement=\"bottom-center\"></div>\n        <div data-anchor-id=\"7\" data-placement=\"top-bottom\"></div>\n        <div data-anchor-id=\"8\" data-placement=\"center-bottom\"></div>\n        <div data-anchor-id=\"9\" data-placement=\"bottom-bottom\"></div>\n      </div>\n    </div>\n\n    <script src=\"dist/aos.js\"></script>\n    <script>\n      if (!window.Cypress) AOS.init();\n    </script>\n  </body>\n</html>\n"
  },
  {
    "path": "demo/animatecss.html",
    "content": "<!DOCTYPE html>\n<html>\n  <head>\n    <meta charset=\"utf-8\">\n    <title>AOS - Animate on scroll library</title>\n    <meta name=\"viewport\" content=\"width=device-width\">\n    <link rel=\"stylesheet\" href=\"css/styles.css\" />\n    <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css\">\n    <style>\n      [data-aos] {\n        visibility: hidden;\n      }\n      [data-aos].animated {\n        visibility: visible;\n      }\n    </style>\n    <!--[if lt IE 9]>\n    <script src=\"//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js\"></script>\n    <![endif]-->\n  </head>\n  <body>\n    <div class=\"aos-all\">\n      <div data-id=\"1\" class=\"aos-item\" data-aos=\"fadeInUp\"></div>\n      <div data-id=\"2\" class=\"aos-item\" data-aos=\"fadeInUp\"></div>\n      <div data-id=\"3\" class=\"aos-item\" data-aos=\"fadeInUp\"></div>\n      <div data-id=\"4\" class=\"aos-item\" data-aos=\"fadeInUp\"></div>\n      <div data-id=\"5\" class=\"aos-item\" data-aos=\"fadeInUp\"></div>\n      <div data-id=\"6\" class=\"aos-item\" data-aos=\"fadeInUp\"></div>\n      <div data-id=\"7\" class=\"aos-item\" data-aos=\"fadeInUp\"></div>\n      <div data-id=\"8\" class=\"aos-item\" data-aos=\"fadeInUp\"></div>\n      <div data-id=\"9\" class=\"aos-item\" data-aos=\"fadeInUp\"></div>\n      <div data-id=\"10\" class=\"aos-item\" data-aos=\"fadeInUp\"></div>\n      <div data-id=\"11\" class=\"aos-item\" data-aos=\"fadeInUp\"></div>\n      <div data-id=\"12\" class=\"aos-item\" data-aos=\"fadeInUp\"></div>\n      <div data-id=\"13\" class=\"aos-item\" data-aos=\"fadeInUp\"></div>\n      <div data-id=\"14\" class=\"aos-item\" data-aos=\"fadeInUp\"></div>\n      <div data-id=\"15\" class=\"aos-item\" data-aos=\"fadeInUp\"></div>\n      <div data-id=\"16\" class=\"aos-item\" data-aos=\"fadeInUp\"></div>\n      <div data-id=\"17\" class=\"aos-item\" data-aos=\"fadeInUp\"></div>\n      <div data-id=\"18\" class=\"aos-item\" data-aos=\"fadeInUp\"></div>\n      <div data-id=\"19\" class=\"aos-item\" data-aos=\"fadeInUp\"></div>\n      <div data-id=\"20\" class=\"aos-item\" data-aos=\"fadeInUp\"></div>\n      <div data-id=\"21\" class=\"aos-item\" data-aos=\"fadeInUp\"></div>\n      <div data-id=\"22\" class=\"aos-item\" data-aos=\"fadeInUp\"></div>\n      <div data-id=\"23\" class=\"aos-item\" data-aos=\"fadeInUp\"></div>\n      <div data-id=\"24\" class=\"aos-item\" data-aos=\"fadeInUp\"></div>\n    </div>\n\n    <script src=\"dist/aos.js\"></script>\n    <script>\n      if (!window.Cypress) AOS.init({\n        useClassNames: true,\n        initClassName: false,\n        animatedClassName: 'animated',\n      });\n    </script>\n  </body>\n</html>\n"
  },
  {
    "path": "demo/async.html",
    "content": "<!DOCTYPE html>\n<html>\n  <head>\n    <meta charset=\"utf-8\">\n    <title>AOS - Animate on scroll library</title>\n    <meta name=\"viewport\" content=\"width=device-width\">\n    <link rel=\"stylesheet\" href=\"css/styles.css\" />\n    <link rel=\"stylesheet\" href=\"dist/aos.css\" />\n    <!--[if lt IE 9]>\n    <script src=\"//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js\"></script>\n    <![endif]-->\n  </head>\n  <body>\n    <div id=\"aos-demo\" class=\"aos-all\"></div>\n\n    <script src=\"dist/aos.js\"></script>\n    <script>\n      if (!window.Cypress) {\n        AOS.init();\n        setInterval(addItem, 150);\n      } else {\n        document.addEventListener('add-aos-item', addItem);\n      }\n\n      var itemsCounter = 1;\n      var container = document.getElementById('aos-demo');\n\n      function addItem () {\n        if (itemsCounter > 24) return;\n        var item = document.createElement('div');\n        item.classList.add('aos-item');\n        item.setAttribute('data-id', itemsCounter);\n        item.setAttribute('data-aos', 'fade-up');\n        container.appendChild(item);\n        itemsCounter++;\n      }\n    </script>\n  </body>\n</html>\n"
  },
  {
    "path": "demo/css/styles.css",
    "content": "body {\n  font-family: Helvetica,Tahoma;\n}\n\n*,\n*:before,\n*:after {\n  box-sizing: border-box;\n}\n\n.scroll-counter {\n  position: fixed;\n  top: 0;\n  right: 0;\n  padding: 15px;\n  color: white;\n  background-color: rgba(0,0,0,0.4);\n}\n\n.aos-all {\n  width: 1000px;\n  max-width: 98%;\n  margin: 50px auto;\n}\n\n.aos-item {\n  display: inline-block;\n  float: left;\n  width: 100%;\n  height: 300px;\n  padding: 20px;\n}\n\n.aos-item::before {\n  content: attr(data-id);\n  position: relative;\n  width: 100%;\n  height: 100%;\n  float: left;\n  background: #1da4e2;\n  line-height: 260px;\n  text-align: center;\n  color: #fff;\n}\n\n@media screen and (min-width: 420px) {\n  .aos-item {\n    width: 50%;\n  }\n}\n\n@media screen and (min-width: 1024px) {\n  .aos-item {\n    width: 33%;\n  }\n}\n\n.aos-anchors__lines {\n  position: fixed;\n  top: 0;\n  bottom: 0;\n  left: 0;\n  right: 0;\n  border-top: 2px solid blue;\n  border-bottom: 2px solid red;\n}\n\n.aos-anchors__lines::before {\n  content: '';\n  width: 100%;\n  height: 2px;\n  position: absolute;\n  margin: auto;\n  top: 0;\n  bottom: 0;\n  left: 0;\n  right: 0;\n  background: green;\n}\n\n.aos-anchors__sidebar {\n  position: fixed;\n  left: 0;\n  top: 0;\n}\n\n.aos-anchors__sidebar > div {\n  padding: 5px 10px;\n  background: #f1f1f1;\n}\n\n.aos-anchors__content {\n  width: 400px;\n  margin: 50px auto;\n}\n\n.aos-anchors__content > div {\n  position: relative;\n  width: 100%;\n  height: 300px;\n  margin-bottom: 50px;\n  background: #f1f1f1;\n  line-height: 300px;\n  text-align: center;\n  color: #333;\n}\n\n.aos-anchors__content > div::before {\n  content: '';\n  position: absolute;\n  left: 0;\n  width: 100%;\n  height: 2px;\n}\n\n.aos-anchors__content > div::after {\n  content: attr(data-anchor-id);\n  position: relative;\n  background-color: #f1f1f1;\n}\n\n.aos-anchors__content > div[data-placement$=\"-bottom\"]::before {\n  background-color: red;\n}\n\n.aos-anchors__content > div[data-placement$=\"-center\"]::before {\n  background-color: green;\n}\n\n.aos-anchors__content > div[data-placement$=\"-top\"]::before {\n  background-color: blue;\n}\n\n.aos-anchors__content > div[data-placement^=\"top-\"]::before {\n  top: 0;\n}\n\n.aos-anchors__content > div[data-placement^=\"center-\"]::before {\n  top: 0;\n  bottom: 0;\n  margin: auto;\n}\n\n.aos-anchors__content > div[data-placement^=\"bottom-\"]::before {\n  bottom: 0;\n}\n"
  },
  {
    "path": "demo/index.html",
    "content": "<!DOCTYPE html>\n<html class=\"no-js\">\n  <head>\n    <meta charset=\"utf-8\">\n    <title>AOS - Animate on scroll library</title>\n    <meta name=\"viewport\" content=\"width=device-width\">\n    <link rel=\"stylesheet\" href=\"css/styles.css\" />\n    <link rel=\"stylesheet\" href=\"dist/aos.css\" />\n    <!--[if lt IE 9]>\n    <script src=\"//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js\"></script>\n    <![endif]-->\n  </head>\n  <body>\n    <div class=\"js-scroll-counter scroll-counter\"></div>\n    <div class=\"aos-all\">\n      <div data-id=\"1\" class=\"aos-item\" data-aos=\"fade-up\"></div>\n      <div data-id=\"2\" class=\"aos-item\" data-aos=\"fade-down\"></div>\n      <div data-id=\"3\" class=\"aos-item\" data-aos=\"zoom-out-down\"></div>\n      <div data-id=\"4\" class=\"aos-item\" data-aos=\"flip-down\"></div>\n      <div data-id=\"5\" class=\"aos-item\" data-aos=\"flip-up\"></div>\n      <div data-id=\"6\" class=\"aos-item\" data-aos=\"fade-down\"></div>\n      <div data-id=\"7\" class=\"aos-item\" data-aos=\"fade-in\"></div>\n      <div data-id=\"8\" class=\"aos-item\" data-aos=\"fade-down\"></div>\n      <div data-id=\"9\" class=\"aos-item\" data-aos=\"fade-in\"></div>\n      <div data-id=\"10\" class=\"aos-item\" data-aos=\"fade-down\" data-aos-id=\"super-duper\"></div>\n      <div data-id=\"11\" class=\"aos-item\" data-aos=\"fade-up\"></div>\n      <div data-id=\"12\" class=\"aos-item\" data-aos=\"fade-down\"></div>\n      <div data-id=\"13\" class=\"aos-item\" data-aos=\"fade-in\"></div>\n      <div data-id=\"14\" class=\"aos-item\" data-aos=\"fade-up\"></div>\n      <div data-id=\"15\" class=\"aos-item\" data-aos=\"fade-in\"></div>\n      <div data-id=\"16\" class=\"aos-item\" data-aos=\"fade-up\"></div>\n      <div data-id=\"17\" class=\"aos-item\" data-aos=\"fade-down\"></div>\n      <div data-id=\"18\" class=\"aos-item\" data-aos=\"fade-up\"></div>\n      <div data-id=\"19\" class=\"aos-item\" data-aos=\"zoom-out\"></div>\n      <div data-id=\"20\" class=\"aos-item\" data-aos=\"fade-up\"></div>\n      <div data-id=\"21\" class=\"aos-item\" data-aos=\"zoom-out\"></div>\n      <div data-id=\"22\" class=\"aos-item\" data-aos=\"fade-in\"></div>\n      <div data-id=\"23\" class=\"aos-item\" data-aos=\"zoom-out-up\"></div>\n      <div data-id=\"24\" class=\"aos-item\" data-aos=\"zoom-out-down\"></div>\n    </div>\n\n    <script src=\"dist/aos.js\"></script>\n    <script>\n      document.querySelector('html').classList.remove('no-js');\n      if (!window.Cypress) {\n        const scrollCounter = document.querySelector('.js-scroll-counter');\n\n        AOS.init({\n          mirror: true\n        });\n\n        document.addEventListener('aos:in', function(e) {\n          console.log('in!', e.detail);\n        });\n\n        window.addEventListener('scroll', function() {\n          scrollCounter.innerHTML = window.pageYOffset;\n        });\n      }\n    </script>\n  </body>\n</html>\n"
  },
  {
    "path": "demo/offset.html",
    "content": "<!DOCTYPE html>\n<html>\n  <head>\n    <meta charset=\"utf-8\">\n    <title>AOS - Animate on scroll library</title>\n    <meta name=\"viewport\" content=\"width=device-width\">\n    <link rel=\"stylesheet\" href=\"css/styles.css\" />\n    <link rel=\"stylesheet\" href=\"dist/aos.css\" />\n    <!--[if lt IE 9]>\n    <script src=\"//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js\"></script>\n    <![endif]-->\n  </head>\n  <body>\n    <div class=\"aos-all\">\n      <div data-id=\"1\" class=\"aos-item\" data-aos=\"fade-up\"></div>\n      <div data-id=\"2\" class=\"aos-item\" data-aos=\"fade-up\"></div>\n      <div data-id=\"3\" class=\"aos-item\" data-aos=\"fade-up\"></div>\n\n      <div data-id=\"4\" class=\"aos-item\" data-aos=\"fade-up\"></div>\n      <div data-id=\"5\" class=\"aos-item\" data-aos=\"fade-up\"></div>\n      <div data-id=\"6\" class=\"aos-item\" data-aos=\"fade-up\"></div>\n\n      <div data-id=\"7\" class=\"aos-item\" data-aos=\"fade-up\" data-aos-offset=\"-150\"></div>\n      <div data-id=\"8\" class=\"aos-item\" data-aos=\"fade-up\" data-aos-offset=\"0\"></div>\n      <div data-id=\"9\" class=\"aos-item\" data-aos=\"fade-up\" data-aos-offset=\"150\"></div>\n\n      <div data-id=\"10\" class=\"aos-item\" data-aos=\"fade-down\" data-aos-offset=\"-150\"></div>\n      <div data-id=\"11\" class=\"aos-item\" data-aos=\"fade-down\" data-aos-offset=\"0\"></div>\n      <div data-id=\"12\" class=\"aos-item\" data-aos=\"fade-down\" data-aos-offset=\"150\"></div>\n\n      <div data-id=\"13\" class=\"aos-item\" data-aos=\"flip-up\" data-aos-offset=\"-150\"></div>\n      <div data-id=\"14\" class=\"aos-item\" data-aos=\"flip-up\" data-aos-offset=\"0\"></div>\n      <div data-id=\"15\" class=\"aos-item\" data-aos=\"flip-up\" data-aos-offset=\"150\"></div>\n\n      <div data-id=\"16\" class=\"aos-item\" data-aos=\"flip-down\" data-aos-offset=\"-150\"></div>\n      <div data-id=\"17\" class=\"aos-item\" data-aos=\"flip-down\" data-aos-offset=\"0\"></div>\n      <div data-id=\"18\" class=\"aos-item\" data-aos=\"flip-down\" data-aos-offset=\"150\"></div>\n\n      <div data-id=\"19\" class=\"aos-item\" data-aos=\"zoom-out-up\" data-aos-offset=\"-150\"></div>\n      <div data-id=\"20\" class=\"aos-item\" data-aos=\"zoom-out-up\" data-aos-offset=\"0\"></div>\n      <div data-id=\"21\" class=\"aos-item\" data-aos=\"zoom-out-up\" data-aos-offset=\"150\"></div>\n\n      <div data-id=\"22\" class=\"aos-item\" data-aos=\"zoom-out-down\" data-aos-offset=\"-150\"></div>\n      <div data-id=\"23\" class=\"aos-item\" data-aos=\"zoom-out-down\" data-aos-offset=\"0\"></div>\n      <div data-id=\"24\" class=\"aos-item\" data-aos=\"zoom-out-down\" data-aos-offset=\"150\"></div>\n\n      <div data-id=\"25\" class=\"aos-item\" data-aos=\"zoom-in-up\" data-aos-offset=\"-150\"></div>\n      <div data-id=\"26\" class=\"aos-item\" data-aos=\"zoom-in-up\" data-aos-offset=\"0\"></div>\n      <div data-id=\"27\" class=\"aos-item\" data-aos=\"zoom-in-up\" data-aos-offset=\"150\"></div>\n    </div>\n\n    <script src=\"dist/aos.js\"></script>\n    <script>\n      if (!window.Cypress) AOS.init();\n    </script>\n  </body>\n</html>\n"
  },
  {
    "path": "demo/once.html",
    "content": "<!DOCTYPE html>\n<html>\n  <head>\n    <meta charset=\"utf-8\">\n    <title>AOS - Animate on scroll library</title>\n    <meta name=\"viewport\" content=\"width=device-width\">\n    <link rel=\"stylesheet\" href=\"css/styles.css\" />\n    <link rel=\"stylesheet\" href=\"dist/aos.css\" />\n    <!--[if lt IE 9]>\n    <script src=\"//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js\"></script>\n    <![endif]-->\n  </head>\n  <body>\n    <div class=\"aos-all\">\n      <div data-id=\"1\" class=\"aos-item\" data-aos=\"fade-up\" data-aos-once=\"true\"></div>\n      <div data-id=\"2\" class=\"aos-item\" data-aos=\"fade-down\"></div>\n      <div data-id=\"3\" class=\"aos-item\" data-aos=\"zoom-out-down\"></div>\n      <div data-id=\"4\" class=\"aos-item\" data-aos=\"flip-down\"></div>\n      <div data-id=\"5\" class=\"aos-item\" data-aos=\"flip-up\" data-aos-once=\"true\"></div>\n      <div data-id=\"6\" class=\"aos-item\" data-aos=\"fade-down\"></div>\n      <div data-id=\"7\" class=\"aos-item\" data-aos=\"fade-in\"></div>\n      <div data-id=\"8\" class=\"aos-item\" data-aos=\"fade-down\"></div>\n      <div data-id=\"9\" class=\"aos-item\" data-aos=\"fade-in\" data-aos-once=\"true\"></div>\n      <div data-id=\"10\" class=\"aos-item\" data-aos=\"fade-down\"></div>\n      <div data-id=\"11\" class=\"aos-item\" data-aos=\"fade-up\" data-aos-once=\"true\"></div>\n      <div data-id=\"12\" class=\"aos-item\" data-aos=\"fade-down\"></div>\n      <div data-id=\"13\" class=\"aos-item\" data-aos=\"fade-in\" data-aos-once=\"true\"></div>\n      <div data-id=\"14\" class=\"aos-item\" data-aos=\"fade-up\"></div>\n      <div data-id=\"15\" class=\"aos-item\" data-aos=\"fade-in\"></div>\n      <div data-id=\"16\" class=\"aos-item\" data-aos=\"fade-up\"></div>\n      <div data-id=\"17\" class=\"aos-item\" data-aos=\"fade-down\" data-aos-once=\"true\"></div>\n      <div data-id=\"18\" class=\"aos-item\" data-aos=\"fade-up\"></div>\n      <div data-id=\"19\" class=\"aos-item\" data-aos=\"zoom-out\"></div>\n      <div data-id=\"20\" class=\"aos-item\" data-aos=\"fade-up\"></div>\n      <div data-id=\"21\" class=\"aos-item\" data-aos=\"zoom-out\" data-aos-once=\"true\"></div>\n    </div>\n\n    <script src=\"dist/aos.js\"></script>\n    <script>\n      if (!window.Cypress) AOS.init();\n    </script>\n  </body>\n</html>\n"
  },
  {
    "path": "package.json",
    "content": "{\n  \"name\": \"aos\",\n  \"version\": \"3.0.0-beta.6\",\n  \"description\": \"Animate on scroll library\",\n  \"homepage\": \"https://michalsnik.github.io/aos/\",\n  \"author\": \"Michał Sajnóg <michal.sajnog@hotmail.com>\",\n  \"license\": \"MIT\",\n  \"main\": \"dist/aos.cjs.js\",\n  \"module\": \"dist/aos.esm.js\",\n  \"browser\": \"dist/aos.js\",\n  \"repository\": {\n    \"type\": \"git\",\n    \"url\": \"https://github.com/michalsnik/aos.git\"\n  },\n  \"bugs\": {\n    \"url\": \"https://github.com/michalsnik/aos/issues\"\n  },\n  \"devDependencies\": {\n    \"autoprefixer\": \"^8.4.1\",\n    \"babel-core\": \"^6.26.3\",\n    \"babel-eslint\": \"^8.2.3\",\n    \"babel-plugin-external-helpers\": \"^6.22.0\",\n    \"babel-plugin-transform-object-assign\": \"^6.22.0\",\n    \"babel-preset-env\": \"^1.7.0\",\n    \"cssnano\": \"^3.10.0\",\n    \"cypress\": \"^2.1.0\",\n    \"eslint\": \"^4.19.1\",\n    \"eslint-config-prettier\": \"^2.9.0\",\n    \"eslint-plugin-prettier\": \"^2.6.0\",\n    \"live-server\": \"tapio/live-server#master\",\n    \"node-sass\": \"^4.9.0\",\n    \"npm-run-all\": \"^4.1.3\",\n    \"rollup\": \"^0.58.2\",\n    \"rollup-plugin-babel\": \"^3.0.4\",\n    \"rollup-plugin-commonjs\": \"^9.1.3\",\n    \"rollup-plugin-node-resolve\": \"^3.3.0\",\n    \"rollup-plugin-postcss\": \"^1.6.1\",\n    \"rollup-plugin-uglify\": \"^3.0.0\"\n  },\n  \"dependencies\": {\n    \"classlist-polyfill\": \"^1.2.0\",\n    \"lodash.debounce\": \"^4.0.8\",\n    \"lodash.throttle\": \"^4.1.1\"\n  },\n  \"scripts\": {\n    \"build\": \"NODE_ENV=production rollup -c\",\n    \"watch\": \"NODE_ENV=dev rollup -c -w\",\n    \"serve\": \"node ./scripts/start-server.js\",\n    \"dev\": \"npm-run-all --parallel serve watch\",\n    \"test\": \"yarn lint && NODE_ENV=test node ./scripts/run-cypress-tests.js\",\n    \"test:dev\": \"cypress open\",\n    \"lint\": \"eslint src cypress demo scripts\",\n    \"prepare\": \"npm run build\"\n  },\n  \"files\": [\n    \"dist\",\n    \"src\"\n  ]\n}\n"
  },
  {
    "path": "rollup.config.js",
    "content": "import resolve from 'rollup-plugin-node-resolve';\nimport commonjs from 'rollup-plugin-commonjs';\nimport babel from 'rollup-plugin-babel';\nimport postcss from 'rollup-plugin-postcss';\nimport uglify from 'rollup-plugin-uglify';\nimport autoprefixer from 'autoprefixer';\nimport cssnano from 'cssnano';\nimport pkg from './package.json';\n\nconst transformStyles = postcss({\n  extract: 'dist/aos.css',\n  plugins: [autoprefixer, cssnano]\n});\n\nconst input = 'src/js/aos.js';\n\nexport default [\n  {\n    input,\n    output: {\n      file: pkg.browser,\n      name: 'AOS',\n      format: 'umd',\n      sourcemap: process.env.NODE_ENV === 'dev'\n    },\n    plugins: [\n      transformStyles,\n      resolve(),\n      commonjs(),\n      babel({\n        exclude: ['node_modules/**']\n      }),\n      uglify()\n    ]\n  },\n  {\n    input,\n    external: Object.keys(pkg.dependencies),\n    output: [\n      { file: pkg.main, format: 'cjs' },\n      { file: pkg.module, format: 'es' }\n    ],\n    plugins: [\n      transformStyles,\n      babel({\n        exclude: ['node_modules/**']\n      })\n    ]\n  }\n];\n"
  },
  {
    "path": "scripts/run-cypress-tests.js",
    "content": "const cypress = require('cypress');\nconst server = require('./start-server');\n\ncypress.run().then(({ failures }) => {\n  server.close();\n  process.exit(failures === 0 ? 0 : 1);\n});\n"
  },
  {
    "path": "scripts/start-server.js",
    "content": "const liveServer = require('live-server');\n\nconst params = {\n  port: 8080,\n  host: '0.0.0.0',\n  root: './demo',\n  watch: ['dist/**', 'demo/**'],\n  open: process.env.NODE_ENV !== 'test',\n  mount: [['/dist', './dist']],\n  noCssInject: true\n};\n\nconst server = liveServer.start(params);\n\nmodule.exports = server;\n"
  },
  {
    "path": "src/js/aos.js",
    "content": "/**\n * *******************************************************\n * AOS (Animate on scroll) - wowjs alternative\n * made to animate elements on scroll in both directions\n * *******************************************************\n */\nimport styles from './../sass/aos.scss';\n\n// Modules & helpers\nimport throttle from 'lodash.throttle';\nimport debounce from 'lodash.debounce';\n\nimport observer from './libs/observer';\n\nimport detect from './helpers/detector';\nimport handleScroll from './helpers/handleScroll';\nimport prepare from './helpers/prepare';\nimport elements from './helpers/elements';\n\n/**\n * Private variables\n */\nlet $aosElements = [];\nlet initialized = false;\n\n/**\n * Default options\n */\nlet options = {\n  offset: 120,\n  delay: 0,\n  easing: 'ease',\n  duration: 400,\n  disable: false,\n  once: false,\n  mirror: false,\n  anchorPlacement: 'top-bottom',\n  startEvent: 'DOMContentLoaded',\n  animatedClassName: 'aos-animate',\n  initClassName: 'aos-init',\n  useClassNames: false,\n  disableMutationObserver: false,\n  throttleDelay: 99,\n  debounceDelay: 50\n};\n\n// Detect not supported browsers (<=IE9)\n// http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805\nconst isBrowserNotSupported = () => document.all && !window.atob;\n\nconst initializeScroll = function initializeScroll() {\n  // Extend elements objects in $aosElements with their positions\n  $aosElements = prepare($aosElements, options);\n  // Perform scroll event, to refresh view and show/hide elements\n  handleScroll($aosElements);\n\n  /**\n   * Handle scroll event to animate elements on scroll\n   */\n  window.addEventListener(\n    'scroll',\n    throttle(() => {\n      handleScroll($aosElements, options.once);\n    }, options.throttleDelay)\n  );\n\n  return $aosElements;\n};\n\n/**\n * Refresh AOS\n */\nconst refresh = function refresh(initialize = false) {\n  // Allow refresh only when it was first initialized on startEvent\n  if (initialize) initialized = true;\n  if (initialized) initializeScroll();\n};\n\n/**\n * Hard refresh\n * create array with new elements and trigger refresh\n */\nconst refreshHard = function refreshHard() {\n  $aosElements = elements();\n\n  if (isDisabled(options.disable) || isBrowserNotSupported()) {\n    return disable();\n  }\n\n  refresh();\n};\n\n/**\n * Disable AOS\n * Remove all attributes to reset applied styles\n */\nconst disable = function() {\n  $aosElements.forEach(function(el, i) {\n    el.node.removeAttribute('data-aos');\n    el.node.removeAttribute('data-aos-easing');\n    el.node.removeAttribute('data-aos-duration');\n    el.node.removeAttribute('data-aos-delay');\n\n    if (options.initClassName) {\n      el.node.classList.remove(options.initClassName);\n    }\n\n    if (options.animatedClassName) {\n      el.node.classList.remove(options.animatedClassName);\n    }\n  });\n};\n\n/**\n * Check if AOS should be disabled based on provided setting\n */\nconst isDisabled = function(optionDisable) {\n  return (\n    optionDisable === true ||\n    (optionDisable === 'mobile' && detect.mobile()) ||\n    (optionDisable === 'phone' && detect.phone()) ||\n    (optionDisable === 'tablet' && detect.tablet()) ||\n    (typeof optionDisable === 'function' && optionDisable() === true)\n  );\n};\n\n/**\n * Initializing AOS\n * - Create options merging defaults with user defined options\n * - Set attributes on <body> as global setting - css relies on it\n * - Attach preparing elements to options.startEvent,\n *   window resize and orientation change\n * - Attach function that handle scroll and everything connected to it\n *   to window scroll event and fire once document is ready to set initial state\n */\nconst init = function init(settings) {\n  options = Object.assign(options, settings);\n\n  // Create initial array with elements -> to be fullfilled later with prepare()\n  $aosElements = elements();\n\n  /**\n   * Disable mutation observing if not supported\n   */\n  if (!options.disableMutationObserver && !observer.isSupported()) {\n    console.info(`\n      aos: MutationObserver is not supported on this browser,\n      code mutations observing has been disabled.\n      You may have to call \"refreshHard()\" by yourself.\n    `);\n    options.disableMutationObserver = true;\n  }\n\n  /**\n   * Observe [aos] elements\n   * If something is loaded by AJAX\n   * it'll refresh plugin automatically\n   */\n  if (!options.disableMutationObserver) {\n    observer.ready('[data-aos]', refreshHard);\n  }\n\n  /**\n   * Don't init plugin if option `disable` is set\n   * or when browser is not supported\n   */\n  if (isDisabled(options.disable) || isBrowserNotSupported()) {\n    return disable();\n  }\n\n  /**\n   * Set global settings on body, based on options\n   * so CSS can use it\n   */\n  document\n    .querySelector('body')\n    .setAttribute('data-aos-easing', options.easing);\n\n  document\n    .querySelector('body')\n    .setAttribute('data-aos-duration', options.duration);\n\n  document.querySelector('body').setAttribute('data-aos-delay', options.delay);\n\n  /**\n   * Handle initializing\n   */\n  if (['DOMContentLoaded', 'load'].indexOf(options.startEvent) === -1) {\n    // Listen to options.startEvent and initialize AOS\n    document.addEventListener(options.startEvent, function() {\n      refresh(true);\n    });\n  } else {\n    window.addEventListener('load', function() {\n      refresh(true);\n    });\n  }\n\n  if (\n    options.startEvent === 'DOMContentLoaded' &&\n    ['complete', 'interactive'].indexOf(document.readyState) > -1\n  ) {\n    // Initialize AOS if default startEvent was already fired\n    refresh(true);\n  }\n\n  /**\n   * Refresh plugin on window resize or orientation change\n   */\n  window.addEventListener(\n    'resize',\n    debounce(refresh, options.debounceDelay, true)\n  );\n\n  window.addEventListener(\n    'orientationchange',\n    debounce(refresh, options.debounceDelay, true)\n  );\n\n  return $aosElements;\n};\n\n/**\n * Export Public API\n */\n\nexport default {\n  init,\n  refresh,\n  refreshHard\n};\n"
  },
  {
    "path": "src/js/helpers/detector.js",
    "content": "/**\n * Device detector\n */\n\nconst fullNameRe = /(android|bb\\d+|meego).+mobile|avantgo|bada\\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i;\nconst prefixRe = /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\\-(n|u)|c55\\/|capi|ccwa|cdm\\-|cell|chtm|cldc|cmd\\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\\-s|devi|dica|dmob|do(c|p)o|ds(12|\\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\\-|_)|g1 u|g560|gene|gf\\-5|g\\-mo|go(\\.w|od)|gr(ad|un)|haie|hcit|hd\\-(m|p|t)|hei\\-|hi(pt|ta)|hp( i|ip)|hs\\-c|ht(c(\\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\\-(20|go|ma)|i230|iac( |\\-|\\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\\/)|klon|kpt |kwc\\-|kyo(c|k)|le(no|xi)|lg( g|\\/(k|l|u)|50|54|\\-[a-w])|libw|lynx|m1\\-w|m3ga|m50\\/|ma(te|ui|xo)|mc(01|21|ca)|m\\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\\-2|po(ck|rt|se)|prox|psio|pt\\-g|qa\\-a|qc(07|12|21|32|60|\\-[2-7]|i\\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\\-|oo|p\\-)|sdk\\/|se(c(\\-|0|1)|47|mc|nd|ri)|sgh\\-|shar|sie(\\-|m)|sk\\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\\-|v\\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\\-|tdg\\-|tel(i|m)|tim\\-|t\\-mo|to(pl|sh)|ts(70|m\\-|m3|m5)|tx\\-9|up(\\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\\-|your|zeto|zte\\-/i;\nconst fullNameMobileRe = /(android|bb\\d+|meego).+mobile|avantgo|bada\\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i;\nconst prefixMobileRe = /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\\-(n|u)|c55\\/|capi|ccwa|cdm\\-|cell|chtm|cldc|cmd\\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\\-s|devi|dica|dmob|do(c|p)o|ds(12|\\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\\-|_)|g1 u|g560|gene|gf\\-5|g\\-mo|go(\\.w|od)|gr(ad|un)|haie|hcit|hd\\-(m|p|t)|hei\\-|hi(pt|ta)|hp( i|ip)|hs\\-c|ht(c(\\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\\-(20|go|ma)|i230|iac( |\\-|\\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\\/)|klon|kpt |kwc\\-|kyo(c|k)|le(no|xi)|lg( g|\\/(k|l|u)|50|54|\\-[a-w])|libw|lynx|m1\\-w|m3ga|m50\\/|ma(te|ui|xo)|mc(01|21|ca)|m\\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\\-2|po(ck|rt|se)|prox|psio|pt\\-g|qa\\-a|qc(07|12|21|32|60|\\-[2-7]|i\\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\\-|oo|p\\-)|sdk\\/|se(c(\\-|0|1)|47|mc|nd|ri)|sgh\\-|shar|sie(\\-|m)|sk\\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\\-|v\\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\\-|tdg\\-|tel(i|m)|tim\\-|t\\-mo|to(pl|sh)|ts(70|m\\-|m3|m5)|tx\\-9|up(\\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\\-|your|zeto|zte\\-/i;\n\nfunction ua() {\n  return navigator.userAgent || navigator.vendor || window.opera || '';\n}\n\nclass Detector {\n  phone() {\n    const a = ua();\n    return !!(fullNameRe.test(a) || prefixRe.test(a.substr(0, 4)));\n  }\n\n  mobile() {\n    const a = ua();\n    return !!(fullNameMobileRe.test(a) || prefixMobileRe.test(a.substr(0, 4)));\n  }\n\n  tablet() {\n    return this.mobile() && !this.phone();\n  }\n\n  // http://browserhacks.com/#hack-acea075d0ac6954f275a70023906050c\n  ie11() {\n    return (\n      '-ms-scroll-limit' in document.documentElement.style &&\n      '-ms-ime-align' in document.documentElement.style\n    );\n  }\n}\n\nexport default new Detector();\n"
  },
  {
    "path": "src/js/helpers/elements.js",
    "content": "/**\n * Generate initial array with elements as objects\n * This array will be extended later with elements attributes values\n * like 'position'\n */\nexport default () => {\n  const elements = document.querySelectorAll('[data-aos]');\n  return Array.prototype.map.call(elements, node => ({ node }));\n};\n"
  },
  {
    "path": "src/js/helpers/getInlineOption.js",
    "content": "/**\n * Get inline option with a fallback.\n *\n * @param  {Node} el [Dom element]\n * @param  {String} key [Option key]\n * @param  {String} fallback [Default (fallback) value]\n * @return {Mixed} [Option set with inline attributes or fallback value if not set]\n */\n\nexport default (el, key, fallback) => {\n  const attr = el.getAttribute('data-aos-' + key);\n\n  if (typeof attr !== 'undefined') {\n    if (attr === 'true') {\n      return true;\n    } else if (attr === 'false') {\n      return false;\n    }\n  }\n\n  return attr || fallback;\n};\n"
  },
  {
    "path": "src/js/helpers/handleScroll.js",
    "content": "import detect from './detector';\n\n/**\n * Adds multiple classes on node\n * @param {DOMNode} node\n * @param {array}  classes\n */\nconst addClasses = (node, classes) =>\n  classes && classes.forEach(className => node.classList.add(className));\n\n/**\n * Removes multiple classes from node\n * @param {DOMNode} node\n * @param {array}  classes\n */\nconst removeClasses = (node, classes) =>\n  classes && classes.forEach(className => node.classList.remove(className));\n\nconst fireEvent = (eventName, data) => {\n  let customEvent;\n\n  if (detect.ie11()) {\n    customEvent = document.createEvent('CustomEvent');\n    customEvent.initCustomEvent(eventName, true, true, { detail: data });\n  } else {\n    customEvent = new CustomEvent(eventName, {\n      detail: data\n    });\n  }\n\n  return document.dispatchEvent(customEvent);\n};\n\n/**\n * Set or remove aos-animate class\n * @param {node} el         element\n * @param {int}  top        scrolled distance\n */\nconst applyClasses = (el, top) => {\n  const { options, position, node, data } = el;\n\n  const hide = () => {\n    if (!el.animated) return;\n\n    removeClasses(node, options.animatedClassNames);\n    fireEvent('aos:out', node);\n\n    if (el.options.id) {\n      fireEvent(`aos:in:${el.options.id}`, node);\n    }\n\n    el.animated = false;\n  };\n\n  const show = () => {\n    if (el.animated) return;\n\n    addClasses(node, options.animatedClassNames);\n\n    fireEvent('aos:in', node);\n    if (el.options.id) {\n      fireEvent(`aos:in:${el.options.id}`, node);\n    }\n\n    el.animated = true;\n  };\n\n  if (options.mirror && top >= position.out && !options.once) {\n    hide();\n  } else if (top >= position.in) {\n    show();\n  } else if (el.animated && !options.once) {\n    hide();\n  }\n};\n\n/**\n * Scroll logic - add or remove 'aos-animate' class on scroll\n *\n * @param  {array} $elements         array of elements nodes\n * @return {void}\n */\nconst handleScroll = $elements =>\n  $elements.forEach((el, i) => applyClasses(el, window.pageYOffset));\n\nexport default handleScroll;\n"
  },
  {
    "path": "src/js/helpers/offsetCalculator.js",
    "content": "/**\n * Calculate offset\n * basing on element's settings like:\n * - anchor\n * - offset\n *\n * @param  {Node} el [Dom element]\n * @return {Integer} [Final offset that will be used to trigger animation in good position]\n */\n\nimport getOffset from './../libs/offset';\nimport getInlineOption from './getInlineOption';\n\nexport const getPositionIn = (el, defaultOffset, defaultAnchorPlacement) => {\n  const windowHeight = window.innerHeight;\n  const anchor = getInlineOption(el, 'anchor');\n  const inlineAnchorPlacement = getInlineOption(el, 'anchor-placement');\n  const additionalOffset = Number(\n    getInlineOption(el, 'offset', inlineAnchorPlacement ? 0 : defaultOffset)\n  );\n  const anchorPlacement = inlineAnchorPlacement || defaultAnchorPlacement;\n  let finalEl = el;\n\n  if (anchor && document.querySelectorAll(anchor)) {\n    finalEl = document.querySelectorAll(anchor)[0];\n  }\n\n  let triggerPoint = getOffset(finalEl).top - windowHeight;\n\n  switch (anchorPlacement) {\n    case 'top-bottom':\n      // Default offset\n      break;\n    case 'center-bottom':\n      triggerPoint += finalEl.offsetHeight / 2;\n      break;\n    case 'bottom-bottom':\n      triggerPoint += finalEl.offsetHeight;\n      break;\n    case 'top-center':\n      triggerPoint += windowHeight / 2;\n      break;\n    case 'center-center':\n      triggerPoint += windowHeight / 2 + finalEl.offsetHeight / 2;\n      break;\n    case 'bottom-center':\n      triggerPoint += windowHeight / 2 + finalEl.offsetHeight;\n      break;\n    case 'top-top':\n      triggerPoint += windowHeight;\n      break;\n    case 'bottom-top':\n      triggerPoint += windowHeight + finalEl.offsetHeight;\n      break;\n    case 'center-top':\n      triggerPoint += windowHeight + finalEl.offsetHeight / 2;\n      break;\n  }\n\n  return triggerPoint + additionalOffset;\n};\n\nexport const getPositionOut = (el, defaultOffset) => {\n  const windowHeight = window.innerHeight;\n  const anchor = getInlineOption(el, 'anchor');\n  const additionalOffset = getInlineOption(el, 'offset', defaultOffset);\n  let finalEl = el;\n\n  if (anchor && document.querySelectorAll(anchor)) {\n    finalEl = document.querySelectorAll(anchor)[0];\n  }\n\n  const elementOffsetTop = getOffset(finalEl).top;\n\n  return elementOffsetTop + finalEl.offsetHeight - additionalOffset;\n};\n"
  },
  {
    "path": "src/js/helpers/prepare.js",
    "content": "/* Clearing variables */\n\nimport { getPositionIn, getPositionOut } from './offsetCalculator';\nimport getInlineOption from './getInlineOption';\n\nconst prepare = function($elements, options) {\n  $elements.forEach((el, i) => {\n    const mirror = getInlineOption(el.node, 'mirror', options.mirror);\n    const once = getInlineOption(el.node, 'once', options.once);\n    const id = getInlineOption(el.node, 'id');\n    const customClassNames =\n      options.useClassNames && el.node.getAttribute('data-aos');\n\n    const animatedClassNames = [options.animatedClassName]\n      .concat(customClassNames ? customClassNames.split(' ') : [])\n      .filter(className => typeof className === 'string');\n\n    if (options.initClassName) {\n      el.node.classList.add(options.initClassName);\n    }\n\n    el.position = {\n      in: getPositionIn(el.node, options.offset, options.anchorPlacement),\n      out: mirror && getPositionOut(el.node, options.offset)\n    };\n\n    el.options = {\n      once,\n      mirror,\n      animatedClassNames,\n      id\n    };\n  });\n\n  return $elements;\n};\n\nexport default prepare;\n"
  },
  {
    "path": "src/js/libs/observer.js",
    "content": "let callback = () => {};\n\nfunction containsAOSNode(nodes) {\n  let i, currentNode, result;\n\n  for (i = 0; i < nodes.length; i += 1) {\n    currentNode = nodes[i];\n\n    if (currentNode.dataset && currentNode.dataset.aos) {\n      return true;\n    }\n\n    result = currentNode.children && containsAOSNode(currentNode.children);\n\n    if (result) {\n      return true;\n    }\n  }\n\n  return false;\n}\n\nfunction check(mutations) {\n  if (!mutations) return;\n\n  mutations.forEach(mutation => {\n    const addedNodes = Array.prototype.slice.call(mutation.addedNodes);\n    const removedNodes = Array.prototype.slice.call(mutation.removedNodes);\n    const allNodes = addedNodes.concat(removedNodes);\n\n    if (containsAOSNode(allNodes)) {\n      return callback();\n    }\n  });\n}\n\nfunction getMutationObserver() {\n  return (\n    window.MutationObserver ||\n    window.WebKitMutationObserver ||\n    window.MozMutationObserver\n  );\n}\n\nfunction isSupported() {\n  return !!getMutationObserver();\n}\n\nfunction ready(selector, fn) {\n  const doc = window.document;\n  const MutationObserver = getMutationObserver();\n\n  const observer = new MutationObserver(check);\n  callback = fn;\n\n  observer.observe(doc.documentElement, {\n    childList: true,\n    subtree: true,\n    removedNodes: true\n  });\n}\n\nexport default { isSupported, ready };\n"
  },
  {
    "path": "src/js/libs/offset.js",
    "content": "/**\n * Get offset of DOM element\n * like there were no transforms applied on it\n *\n * @param  {Node} el [DOM element]\n * @return {Object} [top and left offset]\n */\nconst offset = function(el) {\n  let _x = 0;\n  let _y = 0;\n\n  while (el && !isNaN(el.offsetLeft) && !isNaN(el.offsetTop)) {\n    _x += el.offsetLeft - (el.tagName != 'BODY' ? el.scrollLeft : 0);\n    _y += el.offsetTop - (el.tagName != 'BODY' ? el.scrollTop : 0);\n    el = el.offsetParent;\n  }\n\n  return {\n    top: _y,\n    left: _x\n  };\n};\n\nexport default offset;\n"
  },
  {
    "path": "src/sass/_animations.scss",
    "content": "// Animations variables\n$aos-distance: 100px !default;\n\n@media screen {\n  html:not(.no-js) {\n    /**\n    * Fade animations:\n    * fade\n    * fade-up, fade-down, fade-left, fade-right\n    * fade-up-right, fade-up-left, fade-down-right, fade-down-left\n    */\n\n    [data-aos^='fade'][data-aos^='fade'] {\n      opacity: 0;\n      transition-property: opacity, transform;\n\n      &.aos-animate {\n        opacity: 1;\n        transform: none;\n      }\n    }\n\n    [data-aos='fade-up'] {\n      transform: translate3d(0, $aos-distance, 0);\n    }\n\n    [data-aos='fade-down'] {\n      transform: translate3d(0, -$aos-distance, 0);\n    }\n\n    [data-aos='fade-right'] {\n      transform: translate3d(-$aos-distance, 0, 0);\n    }\n\n    [data-aos='fade-left'] {\n      transform: translate3d($aos-distance, 0, 0);\n    }\n\n    [data-aos='fade-up-right'] {\n      transform: translate3d(-$aos-distance, $aos-distance, 0);\n    }\n\n    [data-aos='fade-up-left'] {\n      transform: translate3d($aos-distance, $aos-distance, 0);\n    }\n\n    [data-aos='fade-down-right'] {\n      transform: translate3d(-$aos-distance, -$aos-distance, 0);\n    }\n\n    [data-aos='fade-down-left'] {\n      transform: translate3d($aos-distance, -$aos-distance, 0);\n    }\n\n\n\n\n    /**\n    * Zoom animations:\n    * zoom-in, zoom-in-up, zoom-in-down, zoom-in-left, zoom-in-right\n    * zoom-out, zoom-out-up, zoom-out-down, zoom-out-left, zoom-out-right\n    */\n\n    [data-aos^='zoom'][data-aos^='zoom'] {\n      opacity: 0;\n      transition-property: opacity, transform;\n\n      &.aos-animate {\n        opacity: 1;\n        transform: translate3d(0, 0, 0) scale(1);\n      }\n    }\n\n    [data-aos='zoom-in'] {\n      transform: scale(.6);\n    }\n\n    [data-aos='zoom-in-up'] {\n      transform: translate3d(0, $aos-distance, 0) scale(.6);\n    }\n\n    [data-aos='zoom-in-down'] {\n      transform: translate3d(0, -$aos-distance, 0) scale(.6);\n    }\n\n    [data-aos='zoom-in-right'] {\n      transform: translate3d(-$aos-distance, 0, 0) scale(.6);\n    }\n\n    [data-aos='zoom-in-left'] {\n      transform: translate3d($aos-distance, 0, 0) scale(.6);\n    }\n\n    [data-aos='zoom-out'] {\n      transform: scale(1.2);\n    }\n\n    [data-aos='zoom-out-up'] {\n      transform: translate3d(0, $aos-distance, 0) scale(1.2);\n    }\n\n    [data-aos='zoom-out-down'] {\n      transform: translate3d(0, -$aos-distance, 0) scale(1.2);\n    }\n\n    [data-aos='zoom-out-right'] {\n      transform: translate3d(-$aos-distance, 0, 0) scale(1.2);\n    }\n\n    [data-aos='zoom-out-left'] {\n      transform: translate3d($aos-distance, 0, 0) scale(1.2);\n    }\n\n\n\n\n    /**\n    * Slide animations\n    */\n\n    [data-aos^='slide'][data-aos^='slide'] {\n      transition-property: transform;\n      visibility: hidden;\n\n      &.aos-animate {\n        visibility: visible;\n        transform: translate3d(0, 0, 0);\n      }\n    }\n\n    [data-aos='slide-up'] {\n      transform: translate3d(0, 100%, 0);\n    }\n\n    [data-aos='slide-down'] {\n      transform: translate3d(0, -100%, 0);\n    }\n\n    [data-aos='slide-right'] {\n      transform: translate3d(-100%, 0, 0);\n    }\n\n    [data-aos='slide-left'] {\n      transform: translate3d(100%, 0, 0);\n    }\n\n\n\n\n    /**\n    * Flip animations:\n    * flip-left, flip-right, flip-up, flip-down\n    */\n\n    [data-aos^='flip'][data-aos^='flip'] {\n      backface-visibility: hidden;\n      transition-property: transform;\n    }\n\n    [data-aos='flip-left'] {\n      transform: perspective(2500px) rotateY(-100deg);\n      &.aos-animate {transform: perspective(2500px) rotateY(0);}\n    }\n\n    [data-aos='flip-right'] {\n      transform: perspective(2500px) rotateY(100deg);\n      &.aos-animate {transform: perspective(2500px) rotateY(0);}\n    }\n\n    [data-aos='flip-up'] {\n      transform: perspective(2500px) rotateX(-100deg);\n      &.aos-animate {transform: perspective(2500px) rotateX(0);}\n    }\n\n    [data-aos='flip-down'] {\n      transform: perspective(2500px) rotateX(100deg);\n      &.aos-animate {transform: perspective(2500px) rotateX(0);}\n    }\n  }\n}\n"
  },
  {
    "path": "src/sass/_core.scss",
    "content": "// Generate Duration && Delay\n[data-aos] {\n  @for $i from 1 through 60 {\n    body[data-aos-duration='#{$i * 50}'] &,\n    &[data-aos][data-aos-duration='#{$i * 50}'] {\n      transition-duration: #{$i * 50}ms;\n    }\n\n    body[data-aos-delay='#{$i * 50}'] &,\n    &[data-aos][data-aos-delay='#{$i * 50}'] {\n      transition-delay: 0s;\n\n      &.aos-animate {\n        transition-delay: #{$i * 50}ms;\n      }\n    }\n  }\n}\n\n[data-aos] {\n  pointer-events: none;\n  &.aos-animate {\n    pointer-events: auto;\n  }\n}\n"
  },
  {
    "path": "src/sass/_easing.scss",
    "content": "$aos-easing: (\n  linear: cubic-bezier(.250, .250, .750, .750),\n\n  ease: cubic-bezier(.250, .100, .250, 1),\n  ease-in: cubic-bezier(.420, 0, 1, 1),\n  ease-out: cubic-bezier(.000, 0, .580, 1),\n  ease-in-out: cubic-bezier(.420, 0, .580, 1),\n\n  ease-in-back: cubic-bezier(.6, -.28, .735, .045),\n  ease-out-back: cubic-bezier(.175, .885, .32, 1.275),\n  ease-in-out-back: cubic-bezier(.68, -.55, .265, 1.55),\n\n  ease-in-sine: cubic-bezier(.47, 0, .745, .715),\n  ease-out-sine: cubic-bezier(.39, .575, .565, 1),\n  ease-in-out-sine: cubic-bezier(.445, .05, .55, .95),\n\n  ease-in-quad: cubic-bezier(.55, .085, .68, .53),\n  ease-out-quad: cubic-bezier(.25, .46, .45, .94),\n  ease-in-out-quad: cubic-bezier(.455, .03, .515, .955),\n\n  ease-in-cubic: cubic-bezier(.55, .085, .68, .53),\n  ease-out-cubic: cubic-bezier(.25, .46, .45, .94),\n  ease-in-out-cubic: cubic-bezier(.455, .03, .515, .955),\n\n  ease-in-quart: cubic-bezier(.55, .085, .68, .53),\n  ease-out-quart: cubic-bezier(.25, .46, .45, .94),\n  ease-in-out-quart: cubic-bezier(.455, .03, .515, .955)\n);\n\n// Easings implementations\n// Default timing function: 'ease'\n\n[data-aos] {\n  @each $key, $val in $aos-easing {\n    body[data-aos-easing=\"#{$key}\"] &,\n    &[data-aos][data-aos-easing=\"#{$key}\"] {\n      transition-timing-function: $val;\n    }\n  }\n}\n"
  },
  {
    "path": "src/sass/aos.scss",
    "content": "@import 'core';\n@import 'easing';\n@import 'animations';\n"
  }
]