Simple example infographic pen

Size
2,618 Kb
Views
22,264

How do I make an simple example infographic pen?

What is a simple example infographic pen? How do you make a simple example infographic pen? This script and codes were developed by Andy Hullinger on 15 September 2022, Thursday.

Simple example infographic pen Previews

Simple example infographic pen - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>simple example infographic pen</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ body{background-color: silver;}
figure{ position: relative; width: 700px; height: 500px; margin:20px auto; border:4px solid black; background-color:#99ccff; overflow: hidden;
}
/* set up for parent/child positioning */
#china, #us, #photos, #boat, .flag, li{
position: absolute;
}
/* layout */
#photos {top: 0;left: 0;}
#china {top: 0;left: 0;}
#us {top: 0;left:413px;}
#china .flag{top: 130px;left: 100px;
transform-origin:top right}
#us .flag{top: 100px;left: 35px;
transform-origin:bottom right}
#boat{top: 250px; left: 30px;}
#photos li{opacity:0}; </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <figure> <ul id="photos"> <li><img src="http://www.andyhullinger.com/china1830/pic1.jpg"/></li> <li><img src="http://www.andyhullinger.com/china1830/pic2.jpg"/></li> <li><img src="http://www.andyhullinger.com/china1830/pic3.jpg"/></li> <li><img src="http://www.andyhullinger.com/china1830/pic4.jpg"/></li> </ul> <div id="china"> <img class="map" src="http://www.andyhullinger.com/china1830/mapchina.png"/> <img class="flag" src="http://www.andyhullinger.com/china1830/flagchina.png"/> </div> <div id="us"> <img class="map" src="http://www.andyhullinger.com/china1830/mapus.png"/> <img class="flag" src="http://www.andyhullinger.com/china1830/flagus.png"/> </div> <img id="boat" src="http://www.andyhullinger.com/china1830/boat.png" />
</figure> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/gsap/1.15.0/TweenMax.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Simple example infographic pen - Script Codes CSS Codes

body{background-color: silver;}
figure{ position: relative; width: 700px; height: 500px; margin:20px auto; border:4px solid black; background-color:#99ccff; overflow: hidden;
}
/* set up for parent/child positioning */
#china, #us, #photos, #boat, .flag, li{
position: absolute;
}
/* layout */
#photos {top: 0;left: 0;}
#china {top: 0;left: 0;}
#us {top: 0;left:413px;}
#china .flag{top: 130px;left: 100px;
transform-origin:top right}
#us .flag{top: 100px;left: 35px;
transform-origin:bottom right}
#boat{top: 250px; left: 30px;}
#photos li{opacity:0};

Simple example infographic pen - Script Codes JS Codes

 TweenMax.from("#us", 1.5, {x:300}); TweenMax.from("#china", 1, {delay:.5, x:-300}); TweenMax.staggerFrom(".flag", .5, {delay:1, scale:0, ease:Back.easeOut}, .3) TweenMax.from("#boat", .5, {delay:2, scale:0, ease:Back.easeOut}, .3); TweenMax.staggerTo(".flag", .5, {delay:3, scale:.4, ease:Back.easeOut}, .3); TweenMax.to(".map", 2, {delay:4, opacity:.5}); TweenMax.staggerTo("#photos li", 1, {delay: 4, opacity:1}, 2); TweenMax.to("#boat", 8, {delay:3, x:400}); TweenMax.to("#boat", 1, {delay:3, y:-100, repeat:1, yoyo:true, repeatDelay:3});
Simple example infographic pen - Script Codes
Simple example infographic pen - Script Codes
Home Page Home
Developer Andy Hullinger
Username andyhullinger
Uploaded September 15, 2022
Rating 3
Size 2,618 Kb
Views 22,264
Do you need developer help for Simple example infographic pen?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Andy Hullinger (andyhullinger) Script Codes
Create amazing captions with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!