About 4,850,000 results
Open links in new tab
  1. javascript - CSS Animation onClick - Stack Overflow

    Jan 31, 2011 · How can I get a CSS Animation to play with a JavaScript onClick? I currently have: .classname { -webkit-animation-name: cssAnimation; -webkit-animation-duration:3s; -webkit …

  2. Maintaining the final state at end of a CSS animation

    I'm running an animation on some elements that are set to opacity: 0; in the CSS. The animation class is applied onClick, and, using keyframes, it changes the opacity from 0 to 1 (among …

  3. How to make blinking/flashing text with CSS 3 - Stack Overflow

    The animation should reverse direction each cycle. When playing in reverse, the animation steps are performed backward. In addition, timing functions are also reversed; for example, an ease …

  4. CSS 3 slide-in from left transition - Stack Overflow

    Mar 14, 2024 · Here is another solution using css transform (for performance purposes on mobiles, see answer of @mate64 ) without having to use animations and keyframes. I created …

  5. Play multiple CSS animations at the same time - Stack Overflow

    Nov 18, 2014 · How can I have two CSS animations playing at different speeds? The image should be rotating and growing at the same time. The rotation will cycle every 2 seconds. The …

  6. How can I delay the start of a CSS animation? - Stack Overflow

    I'm trying to delay the trigger of a CSS animation (not slow down the animation itself, but delay it a few seconds before starting). And the image should not display before the animation runs. I lo...

  7. javascript - Restart animation in CSS3: any better way than …

    Apr 17, 2017 · I have a CSS3 animation that needs to be restarted on a click. It's a bar showing how much time is left. I'm using the scaleY(0) transform to create the effect. Now I need to …

  8. css - Animate an element's width from 0 to 100%, with it and it's ...

    Animate an element's width from 0 to 100%, with it and it's wrapper being only as wide as they need to be, without a pre-set width, in CSS3 or jQuery

  9. How do I loop a css animation with multiple keyframe definitions?

    Aug 19, 2014 · The above works but when it gets to the second animation, it keeps repeating only that animation and does not loop back to fade-bg-1. I've tried many different combinations of …

  10. html - How to Animate Gradients using CSS - Stack Overflow

    Create an animation that will change the opacity of the empty div from 1 to 0 over the desired time. Add animation-fill-mode:forwards; to the div rule so the animation stays where it ends.