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

lilith-transition

v0.2.9

Published

LILITH-TRANSITION is a toy project that used Paint API (Houdini APIs), it add just one transition-paint to simulation dot-transition.

Downloads

2

Readme

LILITH-TRANSITION

WHAT

LILITH-TRANSITION is a toy project that used Paint API (Houdini APIs), it add just one transition-paint to simulation dot-transition.

WHY

No reason, just want to try new things😀.

HOW

How to import LILITH-TRANSITION

  • Use Node.js (with rollup.js):

    1. install LILITH-TRANSITION:

      npm install lilith-transition -S
    2. import LILITH-TRANSITION on anywhere:

      // import all (painter and web-components).
      import("lilith-transition");
      
      // import painter only.
      import("lilith-transition/painter");
  • Use CDN:

    1. add script tag into your html:

      <script type="module" src="https://raw.githubusercontent.com/JuerGenie/lilith-transition/master/release/index.js"></script>

      TIPS: this resource always is latest version, if you want to fixed version, you should copy the file into your project's static folder.

    2. add style into your element:

      <div style="background-image: paint(lilith-transition); --lilith-transition-position: 50%"></div>

How to use LILITH-TRANSITION

  • sample:

    <div class="lilith-transition"></div>
      
    <style>
        .lilith-transition {
            background-image: paint(lilith-transition);
            --lilith-transition-position: -50%;
            --lilith-transition-length: 50%;
              
            transition: --lilith-transition-position 1s ease-out;
        }
    </style>
      
    <script type="module">
        const div = document.querySelector(".lilith-transition");
        div.addEventListener("mouseenter", () => {
            div.attributeStyleMap.set("--lilith-transition-position", "60%");
        });
        div.addEventListener("mouseleave", () => {
            div.attributeStyleMap.delete("--lilith-transition-position");
        });
    </script>

See example folder, the scss file (example/style.scss) defined some stylesheet class to help you for use this.

And if you want to know what is the example's look like, you can try:

  1. clone this repository
  2. run yarn
  3. run yarn watch
  4. open new terminal, run yarn dev
  5. open web page http://127.0.0.1:8080

this example page look like:

Video_2021-06-18_015900

About custom properties

| Property Name | Syntax | Inherits | Initial Value | Description | | ------------------------------- | ---------------------------------- | :------: | ---------------------------------- | ------------------------------------------------------------ | | --lilith-transition-color | <color> | √ | #000 | context's fill style. | | -–lilith-transition-density | <length> \| <length-percentage> | √ | 100px | distance between dots.recommend use px cause now just handle px and per, and finally all use px. | | --lilith-transition-direction | horizontal \| vertical | √ | horizontal | transition direction. | | –-lilith-transition-length | <length> \| <length-percentage> | √ | 200px | transition length.recommend use px cause now just handle px and per, and finally all use px. | | –-lilith-transition-max-size | <length> \| <length-percentage> | √ | with --lilith-transition-density | dot's radius, range (0, MAX], if value lt or eq 0, it will use --lilith-transition-density's value.recommend use px cause now just handle px and per, and finally all use px. | | --lilith-transition-position | <length> \| <length-percentage> | × | 0 | current transition progress.recommend use px cause now just handle px and per, and finally all use px. | | --lilith-transition-style | fade-in \| fade-out \| fade-in-out | √ | fade-in | transition's style, see example. |


Finally

You can contact me by email.