All Projects → weareferal → scrollxp

weareferal / scrollxp

Licence: other
Alpine.js-esque library for scrolling animations on websites

Programming Languages

typescript
32286 projects
HTML
75241 projects
javascript
184084 projects - #8 most used programming language
SCSS
7915 projects
CSS
56736 projects
shell
77523 projects

Projects that are alternatives of or similar to scrollxp

Babypiganimation
基本动画、位移动画、缩放动画、旋转动画、组动画、关键帧动画、贝塞尔曲线、进度条动画、复杂动画、OC动画、aniamtion、basicanimation等。
Stars: ✭ 192 (+284%)
Mutual labels:  animations, animation-library
Flutter Ui Designs
Just collection of UI designs build with flutter. Can run on any mobile, web & desktop.
Stars: ✭ 131 (+162%)
Mutual labels:  parallax, animations
vue3-spring
A spring-physics based animation library, and more
Stars: ✭ 30 (-40%)
Mutual labels:  parallax, animation-library
Typewriterview
Android library for typewriter like effects
Stars: ✭ 124 (+148%)
Mutual labels:  animations, animation-library
portfolio
Personal portfolio (2018)
Stars: ✭ 388 (+676%)
Mutual labels:  gsap, scrollmagic
Geckolib
GeckoLib is an animation library for Minecraft Mods, with support for complex 3D keyframe and scriptable math-based animations. Available for Forge and Fabric (1.12, 1.15, 1.16). Supports entity, block, item, armor animations and more.
Stars: ✭ 131 (+162%)
Mutual labels:  animations, animation-library
Rolly
Custom scroll with inertia, smooth parallax and scenes manager
Stars: ✭ 109 (+118%)
Mutual labels:  parallax, scene
Aaviewanimator
AAViewAnimator is a set of animations designed for UIView, UIButton, UIImageView with options in iOS, written in Swift.
Stars: ✭ 33 (-34%)
Mutual labels:  animations, animation-library
kinieta
A Fast Animation Engine with an Intuitive API
Stars: ✭ 44 (-12%)
Mutual labels:  animations, animation-library
Dynamic.css
🚀 Awesome Library of CSS3 animations 🎉
Stars: ✭ 38 (-24%)
Mutual labels:  animations, animation-library
Elixir cli spinners
Spinnig Animations for Command Line Applications
Stars: ✭ 117 (+134%)
Mutual labels:  animations, animation-library
Sequents
A simple continuous animation library for iOS UI.
Stars: ✭ 31 (-38%)
Mutual labels:  animations, animation-library
Sunset.css
This library offers a collection of different CSS-powered transitions.
Stars: ✭ 99 (+98%)
Mutual labels:  animations, animation-library
Animatable Component
Animate once, use Everywhere! 💫
Stars: ✭ 188 (+276%)
Mutual labels:  animations, animation-library
Rnal
Animations library for react-native
Stars: ✭ 54 (+8%)
Mutual labels:  animations, animation-library
Parade
Parallax Scroll-Jacking Effects Engine for iOS / tvOS
Stars: ✭ 754 (+1408%)
Mutual labels:  parallax, animation-library
Xamanimation
Xamarin Forms Animation Library
Stars: ✭ 389 (+678%)
Mutual labels:  animations, animation-library
Flightanimator
Advanced Natural Motion Animations, Simple Blocks Based Syntax
Stars: ✭ 588 (+1076%)
Mutual labels:  animations, animation-library
Modern.JS
모던 자바스크립트 라이브러리/프레임워크 × KIPFA(한국인터넷전문가협회)
Stars: ✭ 16 (-68%)
Mutual labels:  gsap, scrollmagic
DrinksGalleryApp
Xamarin.Forms goodlooking UI sample using the new CarouselView (Parallax).
Stars: ✭ 51 (+2%)
Mutual labels:  parallax, animations

ScrollXP

ScrollXP is a library that makes it easy to drop scroll-related animations into your website using HTML data attributes. It's a bit like Alpine.js or Tailwind.css ... but for animations.

Overview

Creating animations can be tedious. It's not always clear where the code should go and there are a number of common animations you'll likely write over and over again. If you're not careful you JavaScript files can end up a mess. ScrollXP helps you avoid this by exposing a set of data attributes that you can drop directly into your HTML, making common animations quick and easy.

Demos

See some simple examples in action:

Installation

Via NPM:

$ npm install gsap scrollxp --save

Note: You need to use GSAP 3 or greater.

Include it in your script:

import ScrollXP from "scrollxp"

Or via CDN:

<script src="https://unpkg.com/gsap/dist/gsap.min.js"></script>
<script src="https://unpkg.com/scrollxp/dist/scrollxp.min.js"></script>

Quick Start

new ScrollXP({
  container: document.body,
})

ScrollXP uses GSAP (GreenSock) and ScrollMagic under-the-hood.

ScrollXP relies on the concept of "scenes" from ScrollMagic. A scene is a section of page that will act as a container or scope for particular animations. You define these scenes by adding the data-scene attribute to elements. You then add the animations you want to perform within the scene.

Check the documentation about how to create scenes, animations and parallax effect.

Example

<!DOCTYPE html>
<html lang="en">
  <head>
    <script src="https://unpkg.com/gsap/dist/gsap.min.js"></script>
    <script src="https://unpkg.com/scrollxp/dist/scrollxp.min.js"></script>
    <style>
      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }

      body {
        display: flex;
        align-items: center;
        height: 200vh;
      }

      section {
        width: 100%;
        height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
      }

      section>div {
        width: 300px;
        height: 300px;
        border: 10px solid #000;
      }
    </style>
  </head>
  <body>
    <section data-scene data-scene-duration="100%" data-scene-indicator="scene">
      <div data-animate data-animate-to-rotation="360"></div>
    </section>
    <script>
      new ScrollXP({
        container: document.body,
      });
    </script>
  </body>
</html>

Usage

Check out our documentation for more detailed configuration and usage:

Questions?

File a GitHub issue please.

Author

Feral

License

ScrollXP is available under the MIT license. See the LICENSE file for more info.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].