Basic Starter Pen

Developer
Size
2,160 Kb
Views
36,432

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 Previews

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.
*/
Basic Starter Pen - Script Codes
Basic Starter Pen - Script Codes
Home Page Home
Developer GreenSock
Username GreenSock
Uploaded June 11, 2022
Rating 3
Size 2,160 Kb
Views 36,432
Do you need developer help for Basic Starter 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!

GreenSock (GreenSock) Script Codes
Create amazing marketing copy 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!