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

chillax

v0.0.0-dev.7

Published

vertical parallax for beautiful web presentations

Downloads

4

Readme

❄ — c h i l l a x — ❄

vertical parallax engine for beautiful web presentations

features

  • view the live chillax demo
  • parallax animation engine to create beautiful 3d-feeling scenes
  • only works vertically by design — no horizontal parallaxing
  • goal was to create the look of "3d sunken windows" on the web page
  • scrolling activity actuates the parallax effects
  • on android the parallax effect works via scrolling
  • on ios, gyroscopic activity actuates the parallax effects
    (experimental: currently, only works in landscape with home button on the right)

install chillax into your hip new app

  1. npm install chillax
  2. import Chillax from "chillax"(it's a commonjs module)
  3. link in the stylesheet, node_modules/chillax/dist/chillax-styles.css
  4. proceed to chillax usage instructions below

install chillax the old fashioned way

  1. download the chillax "global bundle" script, and stylesheet (right-click save-as)

  2. load the chillax script and stylesheet onto your html page

    <link rel="stylesheet" href="chillax-styles.css"/>
    
    <script src="chillax.global.bundle.js"></script>
  3. proceed to chillax usage instructions below

chillax usage instructions

  1. prepare your png image layers — use the template or listen carefully

    • by default, chillax assumes your parallax scenes are 16:9 in aspect ratio,
      you are expected to author all of your layer images at double-height (16:18).
      this extra height provides 100% leeway for the parallax effects (otherwise your layers will look cut-off at some point)
    • you should probably use the psd template in the images folder — parallax-template.zip
    • the template shows that the viewport is a 16:9 window centered within the 16:18 image
    • the template is at 4k resolution, but you should save-for-web at half size (1920x2160)
  2. set up a chillax view on your html page

    <div data-chillax>
    	<img data-chillax-layer="10" src="background.png" alt=""/>
    	<img data-chillax-layer="5" src="midground.png" alt=""/>
    	<img data-chillax-layer="0" src="foreground.png" alt=""/>
    </div>
    • [data-chillax] defaults to 100 "leeway",
      which is percentage of parallax sliding action allowable, relative to the height of the view

    • [data-chillax-layer] specifies the depth,
      where 0 is flush with the rest of the page,
      10 is sunken "fully" into the background,
      and anything negative is popping out of the view toward the user

    • note that the chillax css styles define scenes with a display aspect ratio of 16:9 – if you want a different ratio, you must modify/overwrite these css styles

  3. activate chillax on your views

    <script>
    	const chillax = new Chillax()
    </script>