npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@dartmoon/aos-responsive

v1.0.1

Published

Animate on scroll made responsive

Downloads

250

Readme

AOS Responsive

Make Animate On Scroll responsive! With this module you can ovveride the attributes of AOS as you would do it in CSS.

This package use mobile first. This means that normal data-aos-* attributes are valid from mobile devices to larger once and you can ovveride them using breakpoints.

Installation

yarn add @dartmoon/aos-responsive

or

npm i @dartmoon/aos-responsive --save

Usage

How to use it? Exactly like you would do with the standard AOS library!

import AOS from '@dartmoon/aos-responsive'

AOS.init({
    // You AOS configs
})

How to use it?

Simply put a breakpoint name before the attribute.

<div data-aos="fade-up" data-md-aos="fade-right">...</div>

So now on mobile will get the beautiful fade-up animation, while starting from the md breakpoint you will have fade-right.

Default breakpoints

Breakpoints have been inspired by Tailwind CSS.

'sm': '640px',
// => @media (min-width: 640px) { ... }

'md': '768px',
// => @media (min-width: 768px) { ... }

'lg': '1024px',
// => @media (min-width: 1024px) { ... }

'xl': '1280px',
// => @media (min-width: 1280px) { ... }

'2xl': '1536px',
// => @media (min-width: 1536px) { ... }

If you want you can even override them.

import AOS from '@dartmoon/aos-responsive'

AOS.init({
    // ... your AOS configs

    breakpoints: {
        'tablet': '640px',
        // => @media (min-width: 640px) { ... }

        'laptop': '1024px',
        // => @media (min-width: 1024px) { ... }

        'desktop': '1280px',
        // => @media (min-width: 1280px) { ... }
    }
})

So now you can do something like this:

<div data-aos="fade-up" data-tablet-aos="fade-right">...</div>

Disable some attributes override

Maybe you don't want to override all attributes of AOS.

import AOS from '@dartmoon/aos-responsive'

AOS.init({
    // ... your AOS configs

    attributes: [
        'aos'
    ]
})

Now, only data-aos will be checked against the breakpoint overrides.

Just to be clear:

<!-- This will work -->
<div data-aos="fade-up" data-md-aos="fade-right">...</div>

<!-- This will NOT work -->
<div data-aos="fade-up" data-aos-duration="1200" data-md-aos-duration="900">...</div>