
Welcome to the first lesson in this course.
I'm going to give you a quick comparison of vector (svg) and bitmap (png, gif, jpg) images before we get to our first svg animations!
One of the best features of <svg> is that we have full access to all the source code which is mostly human readable.
I'll show you how SVG images are composed of shapes and paths which I refer to as the "guts" of the image.
These guts contain LOTS of numbers which GSAP LOVES to animate.
Lesson Highlights
Compare vector and bitmap images
Look inside an <svg> at its guts
Using inline <svg> as opposed to other methods
Explore the <circle> element
Animate a <circle>'s attributes
Animate a <circle> using css transforms
Explore the svg path element and animate the d attribute using quadratic and cubic bezier curves, mastering start and end points, control points, and path commands for expressive svg animations.
Learn to avoid glitches in svg line animations with gsap by aligning points, adjusting line joins, and using precision snapping to create smooth, reliable morphs.
Explore character-by-character text effects in SVG by creating individual text elements for each character and aligning them for a GSAP animation, including font loading and transform origin challenges.
Explore how to create marching ants by animating SVG stroke dasharray and dashoffset with GSAP, applying it to lines, rectangles, and more shapes.
Learn to animate SVG strokes with dasharray and dashoffset using GSAP, drawing and erasing lines, rectangles, and curved paths by using get total length to set dash values.
Learn to animate svg strokes with gsap and the draw svg plugin, using start/end values and staggered tweens for complex plane drawings.
Learn to master the DrawSVG plugin to animate strokes, wrapping SVG paths from any start to end state, including center-based drawing and coordinated start and end values.
Create advanced svg line jumpers with clip paths, holes, and nested gsap timelines. Clip strokes, convert to paths, and animate multiple holes in sequence.
Explore animating svg clip paths with gsap, from tweening the clipping ellipse to animating the clipped image, using inline and external css approaches.
Combine masking and clipping in svg to create a feathered colorization that reveals a color car over a grayscale image, using a gradient mask and greensock timelines.
Learn to create and animate a custom SVG warp filter with filter primitives, turbulence base frequency, and displacement map scale, then apply the effect to SVG and HTML.
Master hand-coding SVG patterns, setting coordinates, dimensions, and viewbox for fills. Understand pattern units, x and y offsets, and how to reference and animate patterns.
Learn to animate SVG patterns using GSAP to manipulate individual pattern elements and apply pattern transforms with rotate, scale, and translate, creating seamless looping effects across rectangles.
Learn to hand-code template patterns in Boxy SVG, apply variations with unique transforms, and animate them across multiple elements using simple pattern transforms instead of matrices.
Explore the greensock motion path plugin to make an arrow follow an SVG path with alignment, origin, and rotate. Set start and end values with object syntax for path control.
Clone SVG groups with GSAP using the deep clone option and getBBox to center clones on click, while assigning unique IDs and animating the results.
dynamically create SVG elements with code using createElementNS and namespaces, set attributes, and render circles without cloning to understand XML namespaces and proper SVG element creation.
Use getBBox to generate rounded-rectangle outlines behind each tool, then animate a hover reveal with gsap by fading the box's opacity from 0 to 1 and back on leave.
Learn to build a double-border svg animation with gsap, drawing each rectangle’s stroke using drawsvg, overlaying white and red borders to reveal a gradient through nested timelines.
Explore diverse SVG animation techniques for the circle connector challenge, including stroke dash offset, masks, gradient masking, Lottie Lab, and a div-based approach.
Build a live gsap ease visualizer from a simple svg path, load custom easing, and morph the path with the morph SVG plugin to animate between eases.
This course provides a comprehensive and technical deep dive into the world of SVG animation. Scalable Vector Graphics (SVG) are lightweight, super sharp at any size, and loads of fun to animate with GSAP!
Throughout the course we will explore the building blocks of SVG (circles, rectangles, strokes, masks, clip paths, gradients, filters) and explore creative ways of animating them with code.
We will use Boxy SVG (free online svg editor) to create SVG. The beauty of Boxy SVG is that as we draw our shapes we can see exactly how they are represented with coe.
Using CodePen (free online code editor) we will learn how to use basic GSAP commands to animate all the different parts of SVG graphics.
Once we have covered the basics we will also use JavaScript to dynamically generate SVG elements which opens the door for particle effects and more robust interactive experiences.
This course assumes prior knowledge of GSAP basics (hand-coding tweens and timelines) and beginner level knowledge of JavaScript (functions, variables, arrays, loops).
Anyone who considers themselves a Junior Developer or looking to get their first webdev job would be a great fit as well as more seasoned developers who want to hand-craft their own SVG animations.
If you want to wear the badge of "Creative Developer" this course is for you!