Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

General Discussion

a little complex, but please show me in the right direction.

okay I would like to animate a logo, well actually a background of a logo. which is created from a clipping mask in illustrator. I would like the logo to be stationary while the background rotates either counter clockwise or clockwise or. is this possible. I have saved a version as svg.

1 Answer

Codin - Codesmite
Codin - Codesmite
8,600 Points

There is multiple ways you could accomplish this.

  1. For web you could have a div positioned behind another div. The div positioned at the front with your stationary logo and the div behind set with your background, then setup a CSS transition to rotate the div in the background. (Do not put the front div inside the other div, just use positioning and layering to place it infront of the background div or the front div will rotate with the background div).

  2. Or you could import the two images into photoshop and use the animation frames to rotate the background layer and save as a gif (I am not sure if illustrator has animation frames like photoshop might be worth looking into).

That's awesome, I will try this out soon, actually thank you