Use a background rectangle with SVG exports
Eliminate SVG coordinate surprises by using a background rectangle when exporting your SVGs for animation.
As the name implies, it's about motion. Specifically, web animation to get your pixels movin'. It's a collection of tutorials, tips and tricks that will hopefully help with your daily animation work.
My main focus will be real world projects. All lessons assume a basic working knowledge of HTML, CSS and JavaScript. Knowledge of SVGs and the GreenSock Animation Platform will also be super helpful.
Finally, I hope the site is a source of ideas and inspiration for you.
This isn't a place to learn basic coding. There are many wonderful sites to learn the basics. I also won't be using React, Vue, Angular or any other frameworks. All code will be written with vanilla JavaScript and I won't be animating anything with CSS keyframes.
It's also not about perfection. This website isn't perfect. I'm not perfect. You're not perfect. Well, maybe you are. I don't know you. I'm just trying to share knowledge, make some pixels move around the screen and have a bit of fun.
Eliminate SVG coordinate surprises by using a background rectangle when exporting your SVGs for animation.
Animation is much easier with better prep work. In this quick tip, I'll show you my export settings for Adobe Illustrator.
Using GreenSock's mapRange() utility method, we'll create four dials and interactively change the background color with (hsla).
Vector software for your SVGs? Sure, but sometimes it's easier and more flexible to create dynamic SVG elements with JavaScript.
With the aid of a helper line, you can unwrap the two sides of a SVG circle or ellipse from the center bottom position.
Learn the basics about GreenSock's MotionPath plugin with a piggy bank and some flying dollars.
Control the start point of your DrawSVG and MorphSVG animations by cutting and rejoining your paths in Adobe Illustrator.
Learn the basic setup to animate the SVG viewBox attribute in this quick tutorial.