🚀 Lightweight • Zero Dependencies

Beautiful scroll animations made simple. Add stunning motion effects to your website with just a data attribute.

mos image

What is MotionOnScroll (MOS)?

MotionOnScroll (MOS) is a lightweight JavaScript library that makes it incredibly easy to add beautiful scroll animations to your web projects. With MOS, you can enhance user engagement and create visually appealing experiences without the need for complex coding or heavy dependencies.

Simply include the MOS CSS and JS files in your project, and add a data-mos attribute to any HTML element you want to animate. Choose from a variety of animation types such as fade, slide, zoom, flip, rotate, bounce, skew, pop, and blur effects. Customize the animation duration and delay using additional data attributes for precise control over the animation behavior.

Whether you're building a portfolio, landing page, or any other web application, MOS provides a simple yet powerful way to bring your content to life with smooth and engaging scroll animations.

12+
Animation Types
0KB
Dependencies
2
Files Only
100%
Customizable

Why Choose MotionOnScroll?

Powerful, lightweight, and incredibly easy to use

Lightning Fast

Built with performance in mind. Zero dependencies, minimal code, maximum impact. Your pages load fast and animate smoothly.

Beautiful Animations

12+ stunning animation types including fade, slide, zoom, and flip effects. Each animation is carefully crafted for smoothness.

Easy to Use

Just add a data attribute to any element. No JavaScript knowledge required. Customize delay and duration with simple attributes.

Fully Responsive

Works perfectly on all devices and screen sizes. Animations adapt to your layout and provide consistent experience everywhere.

Intersection Observer

Uses modern Intersection Observer API for efficient scroll detection. Animations trigger only when elements are visible.

Customizable

Control animation duration, delay, and behavior. Override defaults with CSS variables or data attributes for fine-tuned control.

Animation Showcase

See all available animation types in action

Fade Up

data-mos="fade-up"

Slide Up

data-mos="slide-up"

Zoom In

data-mos="zoom-in"

Zoom Out

data-mos="zoom-out"

Flip Left

data-mos="flip-left"

Flip Right

data-mos="flip-right"

Flip Up

data-mos="flip-up"

Flip Down

data-mos="flip-down"

Rotate In

data-mos="rotate-in"

Get Started in Seconds

Simple setup, powerful results

1. Include the Files

<link rel="stylesheet" href="https://motion-on-scroll.netlify.app/mos.css">
<script src="https://motion-on-scroll.netlify.app/mos.js"></script>

2. Add Animation to Elements

<div data-mos="fade-up">
  Your content here
</div>

3. Customize (Optional)

<div data-mos="fade-up"
     data-mos-delay="300"
     data-mos-duration="1200">
  Your content here
</div>
Try Live Demo

Get in Touch

Have questions? We'd love to hear from you