keyframe

I'm trying to correct the animation duration and timeline of infinite flip, rotation, spin and disappearance of three images in pure CSS

被刻印的时光 ゝ 提交于 2020-01-24 12:54:31
问题 I tested with the following answers: Pure CSS rotate animation broken while in infinite loop Stop infinite CSS3 animation and smoothly revert to initial state CSS Image Fade Animation Only Runs First Time, but the animation duration and timeline (for example, from step by step, from start to end) did not work. The three images need to be in the same place at once. I wanted to use https://codepen.io/jay-bee-why/pen/Htejl, but unfortunately I do not want to use jQuery. I am CSS and JavaScript

CSS3 keyframes animation on click (with addClass). How to restart CSS3 animation with adding css class?

◇◆丶佛笑我妖孽 提交于 2020-01-17 09:19:48
问题 I have a problem. Im using Bounce.js to create nice menu animations (with some cool effects). Bounce.js using css keyframes animations which can be problematic to restart. I got menu and when I click a button and when .show class is added it should fire show animation. But when I press that button again hide class should be added with hide animation (which is just reverse version of previous animation). Js is working (classes are adding and removing properly) but animation is fired only once

Use different @keyframes based on parent element class

非 Y 不嫁゛ 提交于 2020-01-11 09:46:12
问题 I have an animation like below: @keyframes pulseColorGreen { 0% { background-color: green; } 97%{ background-color: green; } 100% { background-color: white; } } My website also has a dark mode where the background goes black. Now in the animation, I want to display a darker green just like below: @keyframes pulseColorGreen { 0% { background-color: darkgreen; } 97%{ background-color: darkgreen; } 100% { background-color: black; } } For the dark mode, I add a class "lightsOff" in the body tag.

Animating SVG paths with discontinuous parts

怎甘沉沦 提交于 2020-01-01 16:48:23
问题 In the left example the path is continuous (i.e. no m commands), hence the segments of the path are drawn one after another. In the right example the path is discontinuous (i.e. containing m commands), which causes all segments to be drawn at once. How can I make the segments in the right example be drawn one after another? That is, the second stroke starting only when the topmost stroke is finished instead of both starting simultaneously. <svg width="220px" height="100px" viewBox="-10 -10

Animating SVG paths with discontinuous parts

房东的猫 提交于 2020-01-01 16:47:10
问题 In the left example the path is continuous (i.e. no m commands), hence the segments of the path are drawn one after another. In the right example the path is discontinuous (i.e. containing m commands), which causes all segments to be drawn at once. How can I make the segments in the right example be drawn one after another? That is, the second stroke starting only when the topmost stroke is finished instead of both starting simultaneously. <svg width="220px" height="100px" viewBox="-10 -10

WPF - animate image source change

跟風遠走 提交于 2020-01-01 05:53:05
问题 I'm pretty new to WPF but I think what I need to do is relatively simple. I need to create an image "animation", where I am changing an image source every .25 of a second. I have a folder named "animation" with images 1 to 25 png live (named 1.png, 2.png... 25.png). Each image correlate to different frame of my animation. I want to write xaml to change the image from 1 to 2, from 2 to 3, for 3 to 4 etc every .25 seconds until it gets to the 25th image, then it should loop back to the start. I

Passing parameters to css animation

拜拜、爱过 提交于 2019-12-28 04:31:06
问题 p { animation-duration: 3s; animation-name: slidein; } @keyframes slidein { from { margin-left: 100%; width: 300%; } to { margin-left: 0%; width: 100%; } } For the animation CSS code above, I'm wondering whether there's any way to pass the values of margin-left and width as parameter from Javascript. 回答1: Use CSS variables and you can easily do this: document.querySelector('.p2').style.setProperty('--m','100%'); document.querySelector('.p2').style.setProperty('--w','300%'); .p1,.p2 {

Avoid that keyframe animation overflows submenus in navigation

做~自己de王妃 提交于 2019-12-25 00:19:16
问题 I have the following HTML and CSS which you can also find in the JSfiddle here: /* Header & Naviagtion */ .header { width: 100%; height: 10%; position: fixed; } .navigation { width: 100%; height: 100%; } .navigation>ul { height: 100%; width: 100%; display: flex; list-style: none; margin: 0; padding: 0; background-color: purple; } .panel { transform: scale(1, 0); transform-origin: top; transition-duration: 0.2s; width: 100%; position: absolute; top: 100%; background-color: lime; } .button

Fading background color on striped table

不想你离开。 提交于 2019-12-24 23:13:52
问题 I have a bootstrap striped table ( .table-striped > tbody > tr:nth-of-type(odd){background-color: #f9f9f9;} ), and I'm drawing the user's attention to the updated row using this little bit of CSS: .attention { animation: 3s attention; } @keyframes attention { 0% { background-color: #bcf516; } 100% { background-color: initial; } } ... and adding class="attention" dynamically to the <tr> of which ever row that was updated. So a table with row #3 updated will look something like this: <table

Cycling CSS3 animation with a pause period?

只愿长相守 提交于 2019-12-24 17:15:27
问题 I want to run an animation after a pause in a cycle. For EXAMPLE, @-webkit-keyframes test { 0% { opacity:0; } 50% { opacity:1; } 100%{ opacity:0;} } .test { -webkit-animation:test 5s linear 10s infinite forwards; } I want to pause/delay the animation for 10s , then doing the animation for 5s and repeating this cycles. The above example, only works for the first cycle. How can I induce delay/pause in each cycle for infinite cycling? In other words, I need a 15s cycle but with 5s of animation