Intro to SVG and GreenSock Animations
Add to favorites
Learn to Make Fun and Fast Animations
Play video
CodePen Collection for course
This is the link to the CodePen Collection.
Why this course?
As mentioned in my CSS Layout and Animations course, the human brain is hardwired to pay attention to moving objects. Animation is all over the web. From subtle button transitions to complete story telling online. In this course, I'll show you how to make compelling animations that don't detract from the product but add to a better overall user experience. After looking at how to find or create your own SVG's, we will start with a few simple GreenSock animations to get used to the syntax.
We will use a few different tools in this course. One of the tools we will use is Figma. Figma File
Why use CodePen?
To get started, let's look at setting up a free CodePen profile.
CodePen is an online code editor for designers and developers of any skill, and is particularly empowering for people learning to code. You can start adding code into the editor and see results right away without having to worry about linking to other files or downloading CDN's.
When you visit the CodePen page for the first time you will see a sign up button in several places You could also click Start Coding button here but it will not save your work when you exit the site like it would if you created a free profile. Click the Sign up button and create a profile with one of these options.
After signing up you'll see a list of picked pens. CodePen calls the place where you put your code to be saved a Pen. There are all kinds of Pens on the site and it is definitely worth exploring. You can find code for just about anything, from code art to useful UI. When you have the time I would recommend exploring the site more. But for this course let's go ahead and create our first pen so we can look at the text editor.
CodePen Editor Features
CodePen comes with a built in editor. This is broken down into three sections. One for your HTML, one for CSS, and one for JS.
You can add HTML, CSS or JavaScript preprocessors simply by clicking on the Settings button or the gear button next to each editor.
You can also add in CDN's through settings to experiment with all kinds of frameworks. We will be using the GreenSock framework in another course and this is how we will add it to our CodePen.
What is an SVG
The shape of a path element is defined by one attribute: d. The "d" attribute contains a series of commands and parameters used by those commands.
Another command is the "Move To" or M. It takes two parameters, a coordinate ' x ' and coordinate ' y ' to move to.
There are three commands that draw lines. The most generic is the "Line To" command, called with L. L takes two parameters—x and y coordinates—and draws a line from the current position to a new position.
There are two abbreviated forms for drawing horizontal and vertical lines. H draws a horizontal line, and V draws a vertical line. Both commands only take one argument since they only move in one direction.
Templates and source code
Download source files
Download the videos and assets to refer and learn offline without interuption.
Design template
Source code for all sections
Video files, ePub and subtitles
Videos
ePub
Subtitles
1
Intro to SVG and GreenSock Animations
Learn to Make Fun and Fast Animations
10:28
2
How to Create an SVG
Finding, creating, or manipulating SVG for animating
17:29
3
Getting Started with GreenSock
Exploring TweenMax
12:49
4
Timing Functions and Easing
Create Custom Animations with GreenSock's Built in Eases
6:19
5
Creating Complex Animations
Utilizing GreenSock's TimeLineMax
10:20
6
MorphSVG Plugin
Smooth Animations Between Shapes
11:10
7
DrawSVG Plugin
Smoothly Reveal and Hide Strokes
18:01
8
Animating Our UI
Bringing it All Together
16:49
9
More GreenSock Plugins
More Animation Choices with GreenSock Plugins
12:38
Meet the instructor
We all try to be consistent with our way of teaching step-by-step, providing source files and prioritizing design in our courses.
Christina Gorton
Front-end Developer and Instructor at Design+Code
Christina is a self-taught developer who has been working in the industry for a few years. She is a creative coder who likes to turn code into art. She has spent the last few years focused on front-end developer and animations.
2 courses - 7 hours

SVG Animations with GreenSock
Learn how to find, create, and manipulate SVG for the web. Then add the awesome JavaScript animation Library GreenSock to bring those SVG's to life. We will dive into SVG code and explore how to set up your illustrations for animating. Then we will take a look at GreenSock's animation library and many useful plugins to smoothly animate our SVGs on CodePen.
2 hrs

CSS Layout and Animations
Build out a UI prototype in CodePen using CSS Grid and Flexbox. Learn how to bring life to your UI by adding CSS transforms and transformations. We will dive even more in to CSS animations with the CSS animation property and keyframes rule. We’ll wrap it all up by making our prototype responsive and checking out even more cool features on CodePen.
5 hrs