GreenSock - Click
How do I make an greensock - click?
GreenSock tween on click.Find out more GreenSock code snippets in the GreenSock Cheat Sheet https://ihatetomatoes.net/greensock-cheat-sheet/. What is a greensock - click? How do you make a greensock - click? This script and codes were developed by Petr Tichy on 03 November 2022, Thursday.
GreenSock - Click - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>GreenSock - Click</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <h1><strong>Green<span>Sock</span></strong> - Click to tween</h1>
<div id="box" class="box"></div>
<div id="boxSmall" class="box"></div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='http://cdnjs.cloudflare.com/ajax/libs/gsap/1.16.1/TweenMax.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
GreenSock - Click - Script Codes CSS Codes
html, body { height: 100%;
}
body { background-color: #262626; font-family: 'Open Sans', sans-serif; overflow: hidden;
}
h1 { font-size: 16px; width: 300px; color: #838484; font-weight: 300; text-align: center; position: absolute; top: 50%; left: 50%; -webkit-transform: translate(-50%, -200px); transform: translate(-50%, -200px); padding: 10px 20px; border: 1px solid rgba(255, 255, 255, 0.3);
}
h1 span { color: #89c540;
}
h1 strong { color: #fff;
}
.box { background-color: #88ce02; position: absolute; top: 50%; left: 50%; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%);
}
#box { width: 100px; height: 100px; cursor: pointer;
}
#boxSmall { width: 50px; height: 50px; background-color: rgba(136, 206, 2, 0.3); z-index: -1;
}
GreenSock - Click - Script Codes JS Codes
var $box = $('#box'), $boxSmall = $('#boxSmall');
$box.on('click', function(e){ TweenLite.to($boxSmall, 0.3, {x:'+=100px'});
});
Developer | Petr Tichy |
Username | ihatetomatoes |
Uploaded | November 03, 2022 |
Rating | 3 |
Size | 2,582 Kb |
Views | 24,288 |
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 |
JQuery For a Complete Beginners - Console, Window.Scroll, Window.Resize | 3,040 Kb |
Animating SVG With GreenSock | 5,944 Kb |
Ihatetomatoes Animation - Crossbrowser | 5,936 Kb |
GreenSock - staggerTo with cycle | 2,579 Kb |
Happy New Year - GreenSock DrawSVG Animation | 10,551 Kb |
GreenSock - TweenLite demo - Start | 2,541 Kb |
GreenSock - Scale Box on Hover | 2,442 Kb |
Merry Christmallax - Skrollr.js animation | 2,772 Kb |
CSS3 Glitch Animation | 3,441 Kb |
GreenSock - TweenLite - Comp | 3,139 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 |
Text Blocks Over Image, Updated | KatieK2 | 3,122 Kb |
Countdown with Rings | Ewganoel | 2,490 Kb |
Slim Grid SASS SCSS v3.2 | Thesturs | 4,709 Kb |
Confirm Close Of Foundation Reveal Modal | Winghouchan | 1,818 Kb |
V.35 The Monolith Update - Hero Release Notes | Jordan | 12,045 Kb |
A Pen by Mohomed Anees | Mohomedanees | 12,597 Kb |
Single element checkbox | Ivijaygupta | 1,996 Kb |
Slider | Mohammed-fawzy | 2,634 Kb |
Scroll using CSS | Casperovic | 2,159 Kb |
CSS Google Now | Jackmoran | 3,196 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!