Jump to content

Spinning logo - Across Desktop/moblie different and not working correctly.

Recommended Posts

Hey, 

 

I have added coding to the top navigation bar logo to spin 360 degrees continual, using this code:

.header-title-logo{

  animation: rotation 5s infinite linear;

}

@keyframes rotation {

  from {

    transform: rotate(359deg);

  }

  to {

    transform: rotate(0deg);

  }

}

 

When looking at mobile view it's going crazy and moving across the full page - its fun but not what I want it to do.  I would like it to do exactly what it does on desktop. I am new to coding so just finding my feet with it.

 

Thanks

 

Link to comment
  • Replies 1
  • Views 1.1k
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.