Coder Social home page Coder Social logo

html5-banners's Introduction

HTML5 Banner Boilerplate


Project boilerplate for creating HTML5 animated banners with GSAP.

Download Banner Boilerplate

  • Watch a specific banner folder for changes and update browser during development
  • Compile CSS variables and automatically adds vendor prefixes via POSTCSS
  • Lint HTML, CSS, and JS files to maintain coding standards
  • Verify each banner has a fallback image and is the appropriate size
  • Generate review site
  • Update all banners to platform-specific distribution (e.g. DoubleClick, Sizmek)
  • Minify files and assets then create directory of zip files for distribution

###In This Documentation

  1. Getting Started
  2. File Structure
  3. Resources
  4. References

Getting Started

Dependencies

Make sure these are installed first.

Quick Start

  1. Open banners folder.
  2. Inside, rename _banner-template with the banner size (e.g. 300x250)
  3. In bash/terminal/command line, cd into your project directory.
  4. Run npm install to install required files.
  5. When it's done installing, run one of the tasks to get going:
Tasks
gulp Will show all available tasks
gulp watch
--folder
--controls
Watch files for changes and update browser
flag: folder to watch for file changes
flag: controls to play/pause & scrub timeline
gulp review Build review page; ready to push to review ftp
gulp deploy
--platform
Compress files and zip folders for distribution
flag: ad platform distribution (doubleclick,sizmek)

Update package.json

  • name: Project Code (format: YY-aaa-9999). Information used throughout the build/review/deploy process
    • YY: 2-digit Year
    • aaa: 3-digit Client Code
    • 9999: 4-digit Job Code
  • title: Project Title. Added to the review site
  • description: Brief description of project. Added to the review site

File Structure

.
├── README.md
├── package.json                # list of npm packages and some configurations
├── gulp.js                     # build configuration
├── node_modules/               # will be created with `npm install`
└─┬ banners/                   # directory to contain all banner sizes
  ├─┬ _banner-support-files/
  │ ├─┬ ad-platform/            # collection of platform-specific documentation
  │ │ ├── doubleclick.md        # documentation; script blocks will be injected via `deploy` task
  │ │ ├── sizmek.md             # documentation; script blocks will be injected via `deploy` task
  │ │ └── EBLoader.js           # required Sizmek script; must load first before ad is displayed
  │ └─┬ controls/
  │   ├── _banners.js           # installs required development assets
  │   ├── banner-controls.js    # installs/instantiates control bar
  │   └── banner-controls.css   # styles for control bar
  └─┬ _banner-template/         # initial banner setup; duplicate to customize
    ├── index.html              # The ad file, with the ad configuration and init code
    ├── fallback.jpg            # required; Formats accepted: JPG, GIF, PNG
    └─┬ assets/
      ├─┬ css/
      │ ├── style.css           # compiled styles; will be created with `watch`, `review`, or `deploy` tasks
      │ ├── source.css          # main styles; compiled by postcss into `style.css`
      │ └── fonts/              # local font files (optional)
      ├─┬ img/                  # graphic files: jpg, gif, png, or svg
      │ └── keyframes/          # keyframe graphics from PSD for layout/placement; removed via `review` task
      └─┬ js/
        └── script.js           # customized banner animation script

Resources

Greensock/GSAP
Greensock 101 - Greensock Tutorials for Beginners
Greensock Cheat Sheet PDF

References

IAB.com
iab.com/guidelines
iab.com - HTML5 for Digital Advertising 2.0 PDF
iab.com - Display Format Guidelines PDF

DoubleClick
DoubleClick Starter Files
DoubleClick Campaign Manager (DCM) HTML5 Validator
DoubleClick CDN/Shared Libraries
Rich Media Gallery

Sizmek
Sizmek Banner Formats
Building Ads / Creating HTML5 Banners
Sizmek CDN/Shared Libraries

Roadmap

  • lint on watch: html, css, js
  • minify on build: html, css, js
  • optimize on build: image assets (jpg, gif, svg)
  • move tasks into a gulp subfolder and separate files
  • update to gulp 4

html5-banners's People

Contributors

misega avatar

Watchers

 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.