https://github.com/Nicell/nice-anim
An animate on scroll Web Component built with StencilJS
https://github.com/Nicell/nice-anim
anim animation scroll stencil webcomponents
Last synced: 17 days ago
JSON representation
An animate on scroll Web Component built with StencilJS
- Host: GitHub
- URL: https://github.com/Nicell/nice-anim
- Owner: Nicell
- License: mit
- Created: 2019-06-20T02:05:24.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-09-05T22:35:12.000Z (over 5 years ago)
- Last Synced: 2025-04-01T15:06:02.809Z (19 days ago)
- Topics: anim, animation, scroll, stencil, webcomponents
- Language: TypeScript
- Size: 3.79 MB
- Stars: 31
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
- awesome-stenciljs - nice-anim
README
# nice-anim
[](https://stenciljs.com/)
[](https://www.npmjs.com/package/nice-anim)
Example of use from nick.winans.codes## What is it?
nice-anim is a Web Component that allows you to easily animate elements when scrolled into view by wrapping them.## Usage
```html
Animating text!
```
#### All of the props can be found in the component's [README](src/components/nice-anim/readme.md)
## Installation
There are 3 options to install `nice-anim`.### Script tag
- Put `` in the head of your index.html.
- Then you can use the element anywhere in your template, JSX, html etc.### Node Modules
- Run `npm install nice-anim --save`
- Put `` in the head of your index.html.
- Then you can use the element anywhere in your template, JSX, html etc.### In a stencil-app-starter app
- Run `npm install nice-anim --save`
- Add `import 'nice-anim';`
- Then you can use the element anywhere in your template, JSX, html etc.## Intersection Observer Polyfill
[Some browsers don't have the Intersection Observer API.](https://caniuse.com/#search=intersectionobserver) You can include the following script to add support to those browsers without it.``
You can read more about Intersection Observer polyfills [here](https://github.com/w3c/IntersectionObserver/tree/master/polyfill).