About 8,100,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. How to create CSS bounce effect - Stack Overflow

    To achieve a bounce effect at the end of your CSS animation using pure CSS without any JavaScript or third-party libraries, you can utilize keyframes for more control over the animation timing and behavior.

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

    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 two versions to slide-in from …

  4. 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 other thing...

  5. 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-in …

  6. 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 growth will cycle …

  7. CSS how to make an element fade in and then fade out?

    May 8, 2015 · I can make an element with an opacity of zero fade in by changing its class to .elementToFadeInAndOut with the following css: .elementToFadeInAndOut { opacity: 1; transition: …

  8. javascript - Restart animation in CSS3: any better way than removing ...

    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 restart the …

  9. How to make CSS animation slows down to stop on hover, and …

    Apr 1, 2023 · The animation-play-state CSS property sets whether an animation is running or paused. With the marquee paused, you can then animate the parent's transform: translateX(); on :hover …

  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.