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 🙏

© 2024 – Pkg Stats / Ryan Hefner

es-sa

v1.0.6

Published

[Demo](https://ppotatog.github.io/SA/demo/)

Downloads

14

Readme

es-sa

쉽고 간편한 스크롤 애니메이션 라이브러리

Demo

CDN

css


<link href="https://cdn.jsdelivr.net/gh/es-sa/SA/dist/sa.css" rel="stylesheet">

javascript


<script src="https://cdn.jsdelivr.net/gh/es-sa/SA@master/dist/sa.js"></script>   

Use

@threshold?: 0 | 0.1 | 0.2 | 0.3 | 0.4 | 0.5 | 0.6 | 0.7 | 0.8 | 0.9 | 1

import './sa.css';
import SaBox from './SaBox';
import { ESSA } from './es-sa';

const contents = () => {
  useEffect(() => {
    ESSA.init();
  }, []);
  
  return (
    <SaBox
      className="box"
      type="from-bottom"
      duration="200"
      delay="100"
      time="ease-in-out"
      once="false"
    />
  )   
}

Animation value

|property|property-value| |-|-| |animation-name|${dataset.sa}| |animation-duration|1000ms| |animation-delay|0ms| |animation-direction|normal| |animation-iteration-count|1| |animation-play-state|running| |animation-timing-function|ease| |animation-fill-mode|forwards|

Type


<div data-sa="from-left">from-left</div>
<div data-sa="from-right">from-right</div>
<div data-sa="from-top">from-top</div>
<div data-sa="from-bottom">from-bottom</div>
<div data-sa="flip-left">flip-left</div>
<div data-sa="flip-right">flip-right</div>
<div data-sa="flip-top">flip-top</div>
<div data-sa="flip-bottom">flip-bottom</div>
<div data-sa="scale">scale</div>
<div data-sa="fade">fade</div>

Property

모든 속성은 data-sa-*로 사용합니다.


<div
  data-sa-offset="400"
  data-sa-delay="50"
  data-sa-duration="1000"
  data-sa-once="false"
>
</div>

data-sa-offset


<div data-sa-offset="300"></div>

data-sa-from-position에 사용 가능합니다. (from-left, from-top, ...)

해당 앨리먼트가 n만큼 먼 곳에서부터 애니메이션이 실행됩니다.

기본값은 200이며, 50부터 1000까지 가능합니다.

숫자형으로 들어와야 하며, 단위는 px입니다.

data-sa-delay

<div data-sa-delay="1500"></div>

앨리먼트의 애니메이션이 n초 후 실행됩니다.

기본값은 0이며, 500부터 10000까지 가능합니다.

숫자형으로 들어와야 하며, 단위는 ms입니다.

data-sa-duration

<div data-sa-duration="2000"></div>

앨리먼트의 애니메이션이 n초동안 지속됩니다.

기본값은 1000이며, 500부터 10000까지 가능합니다.

숫자형으로 들어와야 하며, 단위는 ms입니다.

data-sa-once

<div data-sa-once="true"></div>

앨리먼트의 애니메이션이 스크롤에 따라 반복됩니다.

기본값은 true이며, boolean입니다.

data-sa-time

<div data-sa-time="ease-out"></div>

앨리먼트에 애니메이션의 전환방법을 변경합니다.

기본값은 ease이며, ['ease', 'ease-in', 'ease-out', 'ease-in-out', 'linear', 'step-start', 'step-end'] 중에서 사용 가능합니다.