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

hyperspace-3d

v0.1.2

Published

Javascript library for activating the z-axis and start scrolling in 3D

Downloads

7

Readme


:speech_balloon: Information

Hyperspace 3D adds another dimension to your site. It simply enables for scrolling on the z-axis, making for an immersive experience. Instead of going down along the page like normal, we go into it.

Accesibility is key. This projects does NOT use any WebGL or canvas. This is basic HTML, CSS and JS. All content will be indexable by the search engines and screen readers.

:scroll: Instructions

The project is currently in Alpha phase, report any bugs you might find. Please don't use in production yet, unless you keep up with the development.

Install: Add hyperspace-3d to your project. Choose one of the following.

  • yarn add hyperspace-3d
  • npm install hyperspace-3d --save

Basic usage: Javascript

import Hyperspace3D from 'hyperspace-3d'

Hyperspace3D()

Note, if you use a framework remember to call the Hyperspace3D after the HTML is rendered, example for React

React.useEffect(()=> {
  Hyperspace3D()
}, [])

HTML

<div id="hs">
    <div hs="container">
        <div hs="scene">
            <section>
                <h1>Custom HTML</h1>
                <p>Your own HTML goes inside the section tags.</p>
            </section>
            <section>
                <p>Add as many sections as you want.</p>
            </section>
            <section>
                <img src="https://loremflickr.com/320/240" />
            </section>
        </div>
    </div>
</div>

Advanced Usage:

 const options = {
    space: {
      amount: 50, // How much the space between sections are. 1-100
      extra: 'auto', // Space after last element. 'auto' detect if element is last, then it is false, otherwise true
    },
    bound: {
      padding: 100, // Padding of bound, in pixels. This is to prevent element sticking if user scrolls away fast
    },
    blur: {
      active: true,
      amount: 10, // How much the blur is. 0-inf
      hq: true, // This solves ClearType pixel problem, makes content hq. Unfortunately it is pretty process intense
      offset: 0.9, // Offset for when hq kicks in
    },
    opacity: {
      active: true,
      amount: 1, // How much opacity between 0-1
    },
  };
  const selector = "#custom-id"
  Hyperspace3D(options, selector)

:raised_hands: Contribute

You are very welcome to contribute to the project.

Developer installation

  1. Clone this project from git, in terminal run git clone https://github.com/martinlundin/hyperdrive
  2. In terminal go to the project root and run npm install or yarn install
  3. To run developer mode with demo npm run dev or yarn dev
  4. When you are finnished with the new version npm run build or yarn build

:snail: Roadmap

| Version | Estimated release | Status | :--------: | ----------------- | :----: | 0.0.1 | 2019-10-16 | :white_check_mark: | 0.1.0 | 2019-10-20 | :white_check_mark: | 0.1.1 | 2020-01-28 | :white_check_mark: | 0.1.2 | 2020-01-30 | :white_check_mark: | 0.2.0 | :question: | :soon:

Feature status

Version 0.2.0

| Status | Description | :----------------: | ---------------- | :white_check_mark: | Set final defaultOptions | :x: | Add multiple demos promoting the library | :x: | Add CDN hosting


Previous version features

Version 0.1.0

| Status | Description | :----------------: | ---------------- | :white_check_mark: | Add space option functionality | :white_check_mark: | Add blur option functionality | :white_check_mark: | Add fix for blur pixel bug | :white_check_mark: | Add opacity option functionality | :x: | Add snap option functionality (REMOVED FROM ROADMAP) | :white_check_mark: | Add demo in project

Version 0.0.1

| Status | Description | :----------------: | ---------------- | :white_check_mark: | Create basic documentation | :white_check_mark: | Create development enviroment | :white_check_mark: | Create minimal viable prototype | :white_check_mark: | Add option & config functionality