Hello Kitty Puppet Example TweenMax
How do I make an hello kitty puppet example tweenmax?
KEY POINTS! • original image in photoshop is 300px x 300px • each part is absolutely positioned inside a parent (that same size as the original image). What is a hello kitty puppet example tweenmax? How do you make a hello kitty puppet example tweenmax? This script and codes were developed by Andy Hullinger on 15 September 2022, Thursday.
Hello Kitty Puppet Example TweenMax - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Hello Kitty Puppet Example TweenMax</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <ul class="puppet"> <li class="back wheel"><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/1412/HK-backwheel.png"/</li> <li class="front wheel"><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/1412/HK-frontwheel.png"/</li> <li class="scooter"><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/1412/HK-scooter.png"/></li> <li class="kitty"><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/1412/HK-kitty.png"/</li> <li class="head"><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/1412/HK-head.png"/</li>
</ul>
<footer></footer> <script src='https://cdnjs.cloudflare.com/ajax/libs/gsap/1.18.4/TweenMax.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Hello Kitty Puppet Example TweenMax - Script Codes CSS Codes
.puppet { position: relative; width: 300px; height: 300px; top: 50px; left: 600px;
}
.puppet li { position: absolute;
/* outline:1px solid red; */
}
/* position all the separate pieces */
.scooter{bottom: 0;left: 0;}
.kitty{top: 65px; left: 130px;}
.head{top: 0; left: 80px;}
.front{bottom: 12px; left:8px;}
.back{bottom: 8px; right:30px;}
/* adjust "anchor points" where needed SEE:https://css-tricks.com/almanac/properties/t/transform-origin/*/
.head{-webkit-transform-origin:120px 110px;transform-origin:120px 110px}
.puppet{-webkit-transform-origin:240px 280px;transform-origin:240px 280px}
/* ground just for fun */
footer{height: 200px;background-color: pink;margin-top: 30px;}
Hello Kitty Puppet Example TweenMax - Script Codes JS Codes
// spin wheelse
TweenMax.to('.wheel', 1, {rotation:"-=360", repeat:-1, ease:Power0.easeNone});
// bounce kitty
TweenMax.to('.kitty, .head', .1, {y:"-=4", repeat:-1, yoyo:true});
//drive in scooter
TweenMax.from('.puppet', 3, {x:"+=1000"});
//pop a wheelie
TweenMax.to('.puppet', .5, {delay:3, rotation:"+=30", x:"-=200", ease:Power1.easeIn});
TweenMax.to('.head', 1, {delay:2.8, rotation:"+=20", ease:Bounce.easeOut});
// speed up wheelse
TweenMax.to('.wheel', .3, {delay:3.5, rotation:"-=360", repeat:-1, ease:Power0.easeNone});
//drive off
TweenMax.to('.puppet', 1, {delay:4, x:"-=800",ease:Power2.easeIn});
Developer | Andy Hullinger |
Username | andyhullinger |
Uploaded | September 15, 2022 |
Rating | 4 |
Size | 2,576 Kb |
Views | 30,360 |
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!
Name | Size |
Simple photo captions | 2,030 Kb |
Banner Example | 3,025 Kb |
CSS type and layout - discrete elements | 2,010 Kb |
Semantic HTML for animated menus | 2,623 Kb |
MFA iteration example | 7,065 Kb |
Clean SVG Map of USA | 15,013 Kb |
Example Responsive Resume | 5,526 Kb |
My Quote Assignment | 1,673 Kb |
Presentation Template with Animation | 4,597 Kb |
Rolling Stone Example | 5,809 Kb |
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!
Name | Username | Size |
Monochrome Form | AlienPiglet | 3,096 Kb |
Simple, flat contact form | Zeaklous | 2,719 Kb |
Scroll to top button | DominicFrancois | 3,743 Kb |
Search field | Jamesbarnett | 2,100 Kb |
Pure CSS Torch Light | Juliendargelos | 2,727 Kb |
Formations | Cantelope | 5,731 Kb |
Revolving Text Landing Page Trial | TimRuby | 2,976 Kb |
A Pen by Theun | Tjoen | 6,152 Kb |
Calculator - codevember 08 - 2016 | Caiocares | 3,260 Kb |
Text Blocks Over Image, Updated | KatieK2 | 3,122 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!