Thanks to @PaulOB , I was able to get the glow effect I needed for my element, but now I need to add a bounceInUp effect to the same element. Here’s the code I tried (the glow effect works perfectly but stops once I add the bounceInUp code).:Where is my mistake? Thank you in advance.
You’ll need the infinite value if you want it to keep animating while hovering.
I’m not sure you’ll see much of an effect as you make it invisible for almost 60% of the time and in that time you animate it from outer space back to -30px. I guess you’ll just catch the end of it by the time you can see it.
Also be aware that if the effect only happens when hovering and you move the element away from the cursor (as with translate) then the effect is lost as you are no longer hovering the element.
Thanks @PaulOB. Sorry for delayed response. I’ve been reading up on “transform” and playing around with it. Pretty cool. Here’s what I am working on. Not perfect, but it’s coming along. Thanks again.
.filter_gal_content a { display: block;
animation-name: floating;
animation-duration: 3s;
transition-property: transform;
animation-timing-function: ease-out;
}
@keyframes floating {
from { transform: translate(0, 7px); }
to { transform: translate(0, 7px); }
I think there’s a typo there as the start and end are the same which means no animation
Use shorthand where possible otherwise the code gets very bulky and is harder to tread.
The transition property doesn’t apply to css animations it applies to transitions. Although you can do both at the same time they are not the same. I’d need to see all your code to check what’s needed or not.