Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

scroll-rise

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scroll-rise

The typescript library for scroll animation

  • 1.6.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Scroll Rise

The typescript library for scroll animation.

NPM

Examples

https://drkaramazin.github.io/scroll-rise/

Module System Types

  • ES6
  • UMD

Layout methods

  • FixedActorsScene
const scene = new StickyPlatformScene(
    document.getElementById('scene'),
    (w, h) => h * 2,
);

Here is an example of using this method.

  • StickyPlatformScene
const scene = new StickyPlatformScene(
    document.getElementById('scene'),
    (w, h) => h * 2,
);

This method also has an offset and stickyPlatformHeight options. To see an example of using these options click here.

Motions

  • MoveMotion
  • SizeMotion
  • OpacityMotion
  • BoundMotion

Actors

  • StaticActor should have MoveMotion, SizeMotion and OpacityMotion in its TimeFrame to calc start/end values. You can also set false into initPosition, initSize, initOpacity to prevent this behavior:
const agenda = new StaticActor(document.getElementById('agenda'), {
    initOpacity: false,
});
  • RefActor doesn't change its coordinates and sizes.

Built With

  • Vanilla JS
  • TypeScript
  • webpack

Authors

  • Nikolay Grishkin - Initial work - GitHub

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Keywords

FAQs

Package last updated on 09 May 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc