Drexel Posted April 7, 2021 Share Posted April 7, 2021 I'm trying to create a stop-motion effect with some <g> tags in an SVG. I created a CodePen to show you how I set things up, but I don't seem to have a "stop motion" type of animation (more like a flicker of sorts). I'm sure I'm missing something simple, but I just can't seem to figure it out. The goal is to have an animation of the football spinning. See the Pen JjErOaj by icekomo (@icekomo) on CodePen Link to comment Share on other sites More sharing options...
PointC Posted April 7, 2021 Share Posted April 7, 2021 Hi @Drexel Welcome to the forum and thanks for being a Club member. Looks like @Shaun Gorneau is working on an answer too, but I'll throw my two cents out here for you. In this case I think I'd toggle the visibility of the groups like this. See the Pen f150722c50fe745710d2de64f610aa36 by PointC (@PointC) on CodePen Happy tweening and welcome aboard. 5 Link to comment Share on other sites More sharing options...
Shaun Gorneau Posted April 7, 2021 Share Posted April 7, 2021 Hi @Drexel, For stop motion, you really don't want to tween any values between 0 and 1 (which autoAlpha will), you want to use more binary properties like `visible` or `display`. Here is an example See the Pen mdRBpzK?editors=1010 by sgorneau (@sgorneau) on CodePen 3 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now