Jump to content
Search Community

Only logo rotating

Samy El Orfi test
Moderator Tag

Recommended Posts

Hi guys ! 

So, I'm new here, and I have a problem: I want to make the circle logo rotate but not the text in a svg file!  I'm using : 

<animateTransform 
       attributeName="transform"
       attributeType="XML"
       type="rotate"
       from="0 "
       to="360  "
       dur="5s"
       repeatCount="indefinite" /> 

But I don't know the center's coordinates :( and when I choose : 22.5 22.5 (the width and height of the circle logo are 45px x 45px ) the circle changes its position or I want it to be in the right side of the text like in the file attached. 

You can check the codepen page !

Please can anyone help me?! 

Many thanks! 

Sans titre 1.jpg

See the Pen NWqMwdb by sampagani (@sampagani) on CodePen

Link to comment
Share on other sites

Hey Samy; welcome.

 

You should look into using SVGOMG for reducing the complexity of your SVG. Also, this thread may also help in preparing your SVG assets:

 

It's best not to mix SMIL and GSAP animations (or any other animations on the same elements) because they will conflict with each other.\

 

14 minutes ago, Samy El Orfi said:

I think I must read some tutorials to use GASP :( to implement your code!

That sounds like a great idea! Here's a getting started article:

 

  • Like 2
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...