Code Monkey home page Code Monkey logo

animated-html5-banner-advert-boilerplate's Introduction

#HTML5 Banner Ad Springboard#

Incredibly quick framework and toolset for developing and deploying Banner Adverts based around the GreenSock Tweening Engine.

Includes FlashTalking built in!

With a few simple changes, html and css are easy to modify and leverage Jade and LESS to allow you to use regular html or css as well as their more advanced siblings.

It uses the Gulp infrastructure to build and create templates for your projects as well as creating deliverable zip files with everything ready and set up built right in.

For instructions on how to use, please check out the Wiki

##Requirements## The only requirement is NodeJS and about 100mb of free space on your machine.

##Installation## After installing NodeJS on your machine, In a Command Prompt :

sudo npm install

or on Windows,

npm install

This will create a folder called "node_modules" which inside will contain all of this project's dependencies.

Whilst that is downloading and installing (usually a few minutes) you can edit the config.json file in the root folder.

Once the installation has completed, ensure all the software is correctly installed by typing :

gulp

Which should bring up a little help message with the available options.

If you cannot see this, try doing a fresh clone of this repo and retrying the installation steps.

Also, you may find an answer to your problems in the FAQ in the Wiki.

##Configuration## All of the settings can be set by altering the parameters in the options.json file. You may use various styles of comments within this file.

There is internal documentation directly next to the parameters that you can set.

You should not have to change the dimensions in the sizes object unless you are working on a campaign that is a unique size, and it may be best to create a new set of sizes specifically for your project.

##To Develop## To aid in the rapid development of campaigns, there are a number of time saving features and helpers available to shape your CSS and HTML.

Once you have created your templates, you can manually change each one as is relevant for that variant.

For example, you may set in your config file

variants : [ 'en', 'th', 'hk', 'de' ]

The scaffold task would then create Jade files for each language and size. You can then open the hk variant for example, and update the copy to the Chinese language.

#####Jade####

src/jade/
src/jade/partials

You can edit the template.jade partial too, these changes will appear in your templates when you run "gulp template"

To overwrite your created jade template files, you can run

gulp jade-create

#####Javascript#### In the src/scripts folder you will find 3 files of interest. The FlashTrack file contains the Flash Talking interface (If you are doing instant Ads, it has the method preset, if not, delete as applicable) The Animation file is boilerplate code for writing your own timeline based animations. Delete whatever you feel you don't need.

src/javascript/							Home for your own scripts
src/javascript/animation.js				The script that conatins your time line and associated animations
src/javascript/utils.js				    Some cross-browser classes that are very useful
src/javascript/manifest.js				FlashTalking manifest template
src/javascript/flashtrack.js			FlashTalking API code
src/javascript/vendors/					Home for any libraries you want transcluded in your main.js file
src/javascript/vendors/trmix.min.js		http://typerendering.com/
src/javascript/vendors/FontScale.js		A simple way to resize the font in a field to maximum size
src/javascript/vendors/tweenlite/		One of two potential rendering engines - this one is small
src/javascript/vendors/tweenmax/		This one is much bigger but is more feature rich

######utils.js######

UTIL.addClass( element, className )     Add a class to a named element
UTIL.removeClass( element, className )  Remove a class (if it exists) from a named element

###To Build For Testing###

gulp debug

###To Compile For Release to Creatives###

This creates a minified version that allows creatives to test the varieties easily while retaining a single folder structure

gulp build

###To Compile For Distribution###

Compiling creates a Release folder that contains X folders (per campaign)

gulp distribute

As well as one ZIP file that represents one release folder in the format The filesize is displayed in the console when run.

release / Name-Type-Variant.zip

Where Name, Type and Variant are read in from the package.json file

eg. Kittens-mpu-a.zip

Uploading your advert to agencies usually requires a zip file with the campaign inside - these are those files.


Released under the GPL2.0 license. If you improve this work, please let us know.

Made with ease of use and speed in mind by designerzen

animated-html5-banner-advert-boilerplate's People

Contributors

designerzen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.