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

boxlet

v0.0.6

Published

an animated box. fade out, open, fade in. fade in, close, fade out.

Downloads

3

Readme

boxlet

(c)Bumblehead, 2014,2015 MIT-license

Overview:

Scripted open/shut behaviour for transitioned box content. Behaviour is customizable but specific markup is required. Behaviours may include animated changes to background and foreground color, opacity, size and visibility.

Animated content activity of one box (note that titles are animatable also): screenshot

Mulitple box animations may be coordinated as well: screenshot

Boxlet does not use CSS3. It modifies each element with beast.js. An advantage is that multiple animations may be synchronised and callbacks may be used when they complete.

For tablets, phones and older IE browsers... in many use-cases beast performs with no observable 'choppiness'. If choppiness is experienced try more conservative frames and fps values.

Boxlet originates from a single-page checkout developed for Ties.com. Shipping, billing etc -each stage of the checkout process used a different box -this increased conversions.


Install:

boxlet may be downloaded directly or installed through npm.

  • npm
$ npm install boxlet
  • Direct Download
$ git clone https://github.com/iambumblehead/boxlet.git

Boxlet is meant to be npm-installed and deployed with scroungejs. Alternatively, this repository contains two ready-to-use files, boxlet.min.js and boxlet.unmin.js.

Run npm start to build a sample boxlet page and to see an advanced component constructed around boxlet as an example.


Test:

Tests are not automated and are performed by loading a document in the browser and using the browser console.

  • load test/index.html in your browser and run tests from the console.

GET STARTED:

The demo boxlet uses the following markup:

<div id="Boxlet" class="boxlet st-content-preview">
  <div id="BoxTitle" class="boxlet-title">
    title
  </div>

  <div id="BoxContentPrev" class="boxlet-content-preview st-show-open">
    <div class="boxlet-content-preview-bd">
      <p>content</p>
    </div>
  </div>

  <div id="BoxContentFull" class="boxlet-content-main st-show-shut">
    <div class="boxlet-content-main-bd">
      content main
    </div>
  </div>
</div>

When markup is available in the document, include boxlet scripts and call them:

var boxlet1 = boxlet({
    boxId : 'Boxlet',
    boxTitleId : 'BoxTitle',
    boxContentFullId : 'BoxContentFull',
    boxContentPrevId : 'BoxContentPrev'
});

For synchronized boxlet animation see the test files.


License:

scrounge

(The MIT License)

Copyright (c) 2014 Bumblehead [email protected]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.