约 50 个结果
在新选项卡中打开链接
  1. javascript - CSS Animation onClick - Stack Overflow

    2011年1月31日 · 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 other thing...

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

    2017年4月17日 · 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 …

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

    2024年3月14日 · 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 …

  5. css - Run CSS3 animation only once (at page loading) - Stack Overflow

    The animation-iteration-count: 1; is internally saved in the animation shothand attribute, which gets resetted and overwritten on :hover. When we blur the <a> and release the :hover the old class …

  6. html - CSS animation integer counters - Stack Overflow

    2024年4月11日 · The problem arises because CSS animations, as you've tried to implement them here, do not support dynamic final values directly within the @keyframes rule for different elements. …

  7. 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.

  8. How to create CSS bounce effect - Stack Overflow

    I am trying to add a bounce effect to the end of the animation without using any 3rd party code or javascript. I managed to create the animation but could not achieve the bounce effect. This is wha...

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

    2023年4月1日 · 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. CSS fill up circle animation - Stack Overflow

    2025年3月26日 · I have a circle which I am trying to animate the fill. .circle-up { width: 210px; height: 210px; background-color: black; border-radius: 100vh !important; margin ...