Rotating homepage icons, gifs?
-
On this page, I like the way the coloured Sudonix wheel rotates when you click on it !
Is this a gif file?
In my nodebb forum can I just upload a gif into the settings for forum logo to get a similar effect? -
On this page, I like the way the coloured Sudonix wheel rotates when you click on it !
Is this a gif file?
In my nodebb forum can I just upload a gif into the settings for forum logo to get a similar effect?@eveh It’s not a GIF, no. It’s actually a
webp
file so made much smaller, and uses keyframes to control the rotation on hover. You can easily make your own thoughThe CSS for that is as below
@keyframes rotate180 { from { transform: rotate(0deg); } to { transform: rotate(180deg); } } @keyframes rotate0 { from { transform: rotate(180deg); } to { transform: rotate(0deg); } } Your milage may vary on the CSS below, as it’s custom for Sudonix, but this is the class that is used to control the rotate
.header .forum-logo, img.forum-logo.head { max-height: 50px; width: auto; height: 30px; margin-top: 9px; max-width: 150px; min-width: 32px; display: inline-block; animation-name: rotate180, rotate0; animation-duration: 1000ms; animation-delay: 0s, 1000ms; animation-iteration-count: 1; animation-timing-function: linear; transition: transform 1000ms ease-in-out; } -
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (ether email, or push notification). You'll also be able to save bookmarks, use reactions, and upvote to show your appreciation to other community members.
With your input, this post could be even better 💗
RegisterLog in