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

@spicycoding/elmo

v0.0.6

Published

This package helps you when you start with a new website. It includes default styles for form elements and you can also include our javascript to make it possible to add effects to your HTML elements.

Downloads

3

Readme

Elmo

Elmo is a framework that includes styled form elements and javascript for visual effects.

What packages do we use?

By installing elmo, you can:

  • Use the Tailwind CSS classes. Here you can find a cheat sheet.
  • Use the GSAP functionalities. For the documentation, go to greensock.com.

Quick install

NPM:

npm install @spicycoding/elmo

Yarn

yarn add @spicycoding/elmo

Add visual effects to your website

In your project, include our package like this:

import elmo from '@spicycoding/elmo';

elmo.start();

You can also change the offset so that the fade in effects will be triggered earlier or later.

elmo.start({
    offset: 250
});

The package will now automatically search for data-effect attributes. For example, when you have an image which should fadeIn you can use this code to make it work:

<img src="/images/your-image.jpg" data-effect="fadeIn">

Elements that are not immediately visible in the viewport

If (for example) your image is not yet visible on the page load, the effect will be added to a queue. When the visitor scrolls down and the element becomes visible, the effect will be triggered automatically.

Documentation

Basic usage: | Effect|Default duration|Example code| |--|--|--| | slideUp| 0.5 sec. |data-effect="slideUp" | slideDown| 0.5 sec.|data-effect="slideDown" | slideLeft| 0.5 sec.|data-effect="slideLeft" | slideRight| 0.5 sec.|data-effect="slideRight" | zoomIn| 0.5 sec.|data-effect="zoomIn" | zoomOut| 0.5 sec.|data-effect="zoomOut" | fadeIn| 1 sec.|data-effect="fadeIn" | fadeOut| 1 sec.|data-effect="fadeOut"

Multiple effects at once: | Effect|Default duration|Example code| |--|--|--| | slideUp and fadeIn| 0.5 sec. |data-effect="slideUp|fadeIn"

Change the duration: | Effect|Custom duration|Example code| |--|--|--| | slideUp| 0.75 sec. |data-effect="slideUp:0.75" | slideUp and fadeIn| 0.75 sec. and 1.75 sec. |data-effect="slideUp:0.75|fadeIn:1.75"

Import styled form elements and Tailwind classes

If you also like to use our styled form elements and the Tailwind classes, you can import our all.css file:

@import '~@spicycoding/elmo/css/all.css';

Thank you for using Elmo!

Kind regards, Pim vd Molen (Spicy Coding)