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

generator-fetch-mi-banners

v3.0.7

Published

Fetch Yeoman generator for creating HTML5 advertising campaigns based on pyramidium Bannertime generator ( all praises due )

Downloads

9

Readme

Logo

Build Status npm version MIT license Gitter Chat

Docs - Guidelines - License

Fetch Yeoman generator for creating HTML5 advertising campaigns

The goal of this project is to streamline banner builds and standardise workflow.

The generator sets up the project scaffolding for you so that you can focus on the fun stuff.

based on pyramidium Bannertime generator ( all praises due )

Quick Start

Install Yeoman, Gulp and Bannertime

$ npm i -g yo gulp generator-fetch-mi-banners

Make a new directory and cd into it

$ mkdir my-campaign && cd $_

Run Bannertime

$ yo fetch-mi-banners

Usage

Usage

Use gulp to automatically launch the banner into the browser with browsersync all your changes will be reflected in the browser with each file save.

Use gulp prod to generate a ZIP file of all the assets of the banner, these will all have been minified as well.

Use gulp backup-gen to automatically generate backup images for each banner.

Creating Elements

You can create DOM elements using the the smartObject function, this will initialise a <div> with the default style of: position: absolute; top: 0; left: 0;.

You are able to set a background image, or set a nested image as a <img> element.

There are helper functions such as center, centerHorizontal and centerVertical to help you position the element.

Other settings are set using a helper function on the element which uses GSAP to process. So this.logo.set({autoAlpha: 0, scale: 0.4}); is the same as TweenLite.set(this.logo, {autoAlpha: 0, scale: 0.4});

Animating

The banner animation is run by the animate function.

By default we are using TweenLite with TimelineLite, but you can change which flavour of GSAP as you require.

More information in the documentation.

Platforms

Logo Logo Logo Logo Logo Logo Logo Logo Logo Logo