@Panda It’s been raised multiple times, but only for the open source version, and not hosted.
fading in /tags page
-
Thanks codepen is a very useful site !
the spinning logo is codepen two ?
-
-
oo yeah can you provide it because I use this but doesn’t working:
.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; }
-
@DownPW You’re probably missing this
@keyframes rotate180 { from { transform: rotate(0deg); } to { transform: rotate(180deg); } } @keyframes rotate0 { from { transform: rotate(180deg); } to { transform: rotate(0deg); } }
Without the
keyframes
it will not work -
@DownPW said in fading in /tags page:
.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;
}like this ? Because I have the effect but just at the refresh page and not on Mouse over
.header .forum-logo, img.forum-logo.head:hover { 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; @keyframes rotate180 { from { transform: rotate(0deg); } to { transform: rotate(180deg); } } @keyframes rotate0 { from { transform: rotate(180deg); } to { transform: rotate(0deg); } } }
EDIT:
I have it !!!
@keyframes rotate180 { from { transform: rotate(0deg); } to { transform: rotate(180deg); } } @keyframes rotate0 { from { transform: rotate(180deg); } to { transform: rotate(0deg); } } .header .forum-logo:hover { 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; }
-
@DownPW Yes, that was going to be my solution.
-
@phenomlab thanks for sharing, that looks very cool
-
@DownPW thanks for the codes, how should we edit it if we want a full turn? and keep turning as long as the mouse is hovered on?
-
@crazycells change
180
to360
on the keyframes and set to time toinfinite
on the animation, so an example would beanimation-iteration-count: infinite;
Don’t do this on mobile devices though as performance will be greatly impacted.
-
@phenomlab thanks
-
hmmm
Strange with the code I put above, as soon as I remove the mouse pointer from the logo, it returns to it’s original place and it cuts the animation.
How can we let the animation end even if we remove the mouse pointer from the logo ?
-
-
@DownPW said in fading in /tags page:
as soon as I remove the mouse pointer from the logo, it returns to it’s original place and it cuts the animation.
Yes, that’s expected because you have the css set for
hover
state meaning once you remove that state, the animation will stopYou need to refactor the css to achieve the effect the looking for. Personally, I wouldn’t go for a constantly spinning logo. If you’re as old as I am, you’ll recall this being a thing in Internet Explorer 4 with the spinning globe on the right that was a constant presence and quite a distraction.
I also wouldn’t do this on any mobile devices as it can severely degrade the browser performance.
-
no no my god, not constantly animation !!
If I hover over the logo, the animation triggers as currently, continues and ends even if I remove the mouse from the logo.
That’s what’s happening here on Sudonix.
-
@DownPW I see what you mean. The reason for this is that you are calling both
rotate180
androtate0
which are two separate effects.animation-name: rotate180, rotate0;
You could remove
rotate0
from this section and that will stop the animation as soon as themouseLeave
event is triggered in theDOM
(in other words, as soon as you remove the hover)animation-name: rotate180;
-
hmm not work
can you provide your CSS code and keyframe for I see it ?
On sudonix, the animation stop and restart when we leave the mouse over. -
@DownPW it’s here
https://sudonix.com/post/3590The exact CSS I have here is
@keyframes rotate180 { from { transform: rotate(0deg); } to { transform: rotate(180deg); } } @keyframes rotate0 { from { transform: rotate(180deg); } to { transform: rotate(0deg); } } .forum-logo:hover { transform: rotate(180deg); } .hover { transform: rotate(180deg); }
-
-
The tags page looked better before, it does not look good when it is very “ordered”. @phenomlab do you have any intention to change that page in harmony thema?
-
@crazycells I must admit, I’ve neglected the tags page somewhat, but I do agree with you - it’s pretty dull and could do with some magic.
-
@crazycells just for you…
Did this solution help you?
Related Topics
-
-
Nodebb design
Solved General -
-
-
-
-
-