cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

                      <title>Interactive Typography Effects with HTML5</title>
        <meta charset="UTF-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 
        <meta name="viewport" content="width=device-width, initial-scale=1.0"> 
        <link rel="stylesheet" type="text/css" href="https://tympanus.net/Tutorials/InteractiveTypographyEffects/css/demo.css" />
        <link rel="stylesheet" type="text/css" href="https://tympanus.net/Tutorials/InteractiveTypographyEffects/css/style.css" />
		<script type="text/javascript" src="https://tympanus.net/Tutorials/InteractiveTypographyEffects/js/banner2.js"></script>
		<script type="text/javascript" src="https://www.google.com/jsapi"></script>
		<script type="text/javascript" src="https://tympanus.net/Tutorials/InteractiveTypographyEffects/js/modernizr.custom.41769.js"></script>

        <div class="container">
            <div class="header">
                <a href="https://tympanus.net/Tutorials/AnimatedButtons/">
                    <strong>&laquo; Previous Demo: </strong>Animated Buttons with CSS3
				<span class="right">
					<a href="https://tympanus.net/codrops/2011/11/09/interactive-html5-typography/">
						<strong>Back to the Codrops Article</strong>
				<div class="clr"></div>
            <h1>Interactive Typography Effects<br /><span> with HTML5</span></h1>
          <center><p  style="color: black; font: 20pt;"><span style="color: red;"> NOTE </span>: Put cursor on the image to see typography animation effects ... it is like boxing!</p></center><br>

            <div class="more">
                    <li><a href="https://tympanus.net/Tutorials/InteractiveTypographyEffects/index.html">Demo 1</a></li>
                    <li class="selected"><a href="https://tympanus.net/Tutorials/InteractiveTypographyEffects/index2.html">Demo 2</a></li>
                    <li><a href="https://tympanus.net/Tutorials/InteractiveTypographyEffects/index3.html">Demo 3</a></li>
                    <li><a href="https://tympanus.net/Tutorials/InteractiveTypographyEffects/index4.html">Demo 4</a></li>
            <div id="wrapper" class="wrapper">
                <canvas id="canvas-banner" class="inactive">
                    <img src="https://tympanus.net/Tutorials/InteractiveTypographyEffects/images/fallback2.png" />
			<div id="font" class="font-used">
                Font used: 
                <a href="https://www.google.com/webfonts/specimen/Cookie" target="_blank" class="cookie">Cookie</a>
       <script src="https://tympanus.net/codrops/adpacks/demoad.js"></script>

 Interactive Typography Effects with HTML5
With HTML5 gaining popularity, this tutorial outlines what is really just the tip of the iceberg that is interactive design. 
In this tutorial I will go over the development of dynamic, and generative banners to give your website that little extra wow!
<p>SOURCE: Try <a href="https://tympanus.net/Tutorials/InteractiveTypographyEffects/index2.html" target="_blank"><i><b>Interactive Typography Effects with HTML5</b></i></a></p>


by https://tympanus.net

			if(Modernizr.canvas) {
				var wrapper = document.getElementById('wrapper'),
					loading	= document.createElement('div');
				loading.className = 'loading';
				loading.innerHTML = 'Loading...';

				google.setOnLoadCallback(function() {
						google: {
							families: ['Cookie']
						/* Called when each requested web font has finished loading. The fontFamily parameter is the name of the font family, and fontDescription represents the style and weight of the font. */
						active: function(fontFamily, fontDescription) {
							setTimeout(function() {
								loading.style.display = 'none';
								var banner = new Banner();
								document.getElementById('font').style.display = 'block';
							}, 1000);
						inactive: function() {
							// google font not loaded, we will use the default font : Arial (set in baner.js file)
							loading.style.display = 'none';
							var banner = new Banner();
Loading ..................