
Organize the banner project by creating folders for images and the JavaScript file. Export each slide image from Photoshop, exporting the logo as a DNG, and verify the assets.
Create html, css, and javascript files with Sublime Text, link the CSS and JavaScript to the index file, set UTF-8 and viewport, and include the tween max library for animations.
Organize the banner HTML with divs and IDs, position top and bottom layers absolutely, apply background images, and preview in the browser to fine-tune the animations.
Create a title container and apply a web font by defining font-face, choosing the Futura and Masters font families, and setting size, color, line height, rotation, and margins.
Add a logo by creating a bottom div, position it absolutely, set width to 300px, center the text, and calculate the bottom value. Preview the browser to verify.
Build a multi-screen banner with a top title, middle four-image area, and bottom call-to-action button, using css to hide sections, position images, and reveal the final call-to-action button.
Apply a reusable text class to banner text, toggle selectable vs non-selectable, center and rotate the 70 percent text, and set initial opacity for the first screen animation.
Animate the banner’s first screen by sequencing a double-scale of the big sales text and a fade-in using the timeline in Tamlyn Max, with successive position and size adjustments.
Animate the photos with leftward transitions and opacity changes, sequencing the top, middle, and footer sections with delays.
Animate the last screen in html5 animations and banners by revealing its container with a fade-in, delaying and staggering text elements, and adding stamp and scale effects.
Set the repeat parameter to control how many times the animation loops. Use timeline marks to insert delays between loops so the final screen is readable.
This tutorial is mini project based where we will produce an HTML5 animated banner. Using a PSD file as asset, I will guide you through all the steps to exactly reproduce the banner in HTML before animating it. This tutorial will cover the following sessions :
- Export images from PSD,
- Organise folder by creating and linking HTML, JS, CSS files,
- Create HTML file,
- Style HTML elements by taking measurements from PSD,
- Animate the HTML elements using Greensock Javascript Library.
We will start by exporting the contents from the PSD, writing the HTML codes, adding CSS styles and finally use the Greensock Tweenmax library to animate the banner.
This course is for students who already have some basic knowledge about HTML, and wish to progress further by doing some more advanced styling and produce animations. If you don't have any HTML knowledge, you can still take the course and you will understand what it is all about. It will also help students reproduce an HTML document from a any PSD.