Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
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.
Codin - Codesmite8,600 Points
There is multiple ways you could accomplish this.
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).
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).