Basic Starter Pen
How do I make an basic starter pen?
Loads TweenMax and jQuery to enable the creation of hassle-free demos. What is a basic starter pen? How do you make a basic starter pen? This script and codes were developed by GreenSock on 11 June 2022, Saturday.
Basic Starter Pen - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Basic Starter Pen</title> <link rel="stylesheet" href="css/style.css">
</head>
<body>
<h3>both boxes are halfway through a tween that changes their left from 0 to 600</h3>
<div class="demo"> <div class="box red" id="redBox"></div> <div class="box blue" id="blueBox"></div>
</div> <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/latest/TweenMax.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Basic Starter Pen - Script Codes CSS Codes
body { font-family:sans-serif;
}
h1 { margin: 5px 0;
}
h3 { margin:0; font-size:16px;
}
.demo { width:600px; height:120px; background-color:black;
}
.box { width:50px; height:50px; position:relative; margin-bottom:2px;
}
.red { background-color:red;
}
.blue { background-color:blue;
}
.nav { width:600px; background-color:#ccc; text-align:right;
}
button { padding:10px; margin:10px;
}
Basic Starter Pen - Script Codes JS Codes
var t1 = TweenLite.to("#redBox", 1, {left:500, ease:Linear.easeNone})
var t2 = TweenLite.to("#blueBox", 1, {left:500, ease:Power4.easeOut})
t1.progress(0.5).pause();
t2.progress(0.5).pause();
/* This Pen Loads the Following jQuery: latest version TweenMax: latest version -TweenLite -TweenMax -TimelineLite -TimelineMax -CSSPlugin -BezierPlugin -DirectionalRotationPlugin -AttrPlugin -RoundPropsPlugin -EasePack Please use the minimal amount of code possible to recreate the problem you are experiencing.
*/
Developer | GreenSock |
Username | GreenSock |
Uploaded | June 11, 2022 |
Rating | 3 |
Size | 2,160 Kb |
Views | 36,432 |
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 |
Advanced SVG Shape Morphing | 6,342 Kb |
MorphSVGPlugin from GreenSock | 24,861 Kb |
Intro TimelineLite - finished | 3,311 Kb |
Support Starter Pen | 2,157 Kb |
GreenSock Home Page Animation | 7,093 Kb |
SVG progressive line render | 3,514 Kb |
Banner Survey | 32,523 Kb |
Basic Tween | 1,905 Kb |
Hide rerun on embedded pens | 1,392 Kb |
Simple 3D Hover Flip | 2,559 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 |
Use the Twitchtv JSON API | Roksanaop | 3,561 Kb |
CSS Bot Confusion | Jpod | 3,456 Kb |
Weather App | Kw7oe | 3,162 Kb |
A Pen by Andrea Verlicchi | Verlok | 2,018 Kb |
Cool Page Split Effect | Anthonyadamski | 6,128 Kb |
Fluid Responsive Typography | Jonmilner | 4,205 Kb |
BenU Maintenance Site | Ksherman | 4,893 Kb |
Google Chrome Icon using Pure CSS in one DIV | Grssam | 3,627 Kb |
Google Fonts Sass Mixin | HugoGiraudel | 4,237 Kb |
A Pen by Manoz | Manoz | 2,424 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!