css-animations

translate3d between 0% and negative % in IE10

我只是一个虾纸丫 提交于 2019-12-06 01:27:26
问题 I have an element that needs to animate left and right to the amount of 50% of its full width. I've accomplished this with the following (simplified) markup: <div class="wrapper"> <div class="inner">Inner</div> </div> And style: .wrapper { position: relative; width: 300px; height: 200px; } .inner { position: absolute; top: 0; right: 0; bottom: 0; left: 0; animation: MOVE_AROUND 5s infinite; } With keyframe animation: @keyframes MOVE_AROUND { 0%, 10% { transform: translate3d(0, 0, 0); } 20%,

CSS infinite animation after hidden is not reset (Chrome)

蹲街弑〆低调 提交于 2019-12-06 01:02:38
问题 Here I have an example of CSS keyframe animation (You can see the whole thing on this Demo) The code will every 1.4 seconds scale the img to 0.75 and go back to it's original (1) scale. That works fine. Then I add a simple jQuery code to simulate the error: setTimeout(function () { $("img").css('visibility', 'hidden'); activate(); }, 3000); function activate() { setTimeout(function () { $("img").css('visibility', 'visible'); }, 3000); } @-webkit-keyframes imagebulger { to { -webkit-transform:

css3 animation change continuously

怎甘沉沦 提交于 2019-12-06 01:01:01
i am trying to implement css3 animations.... i am planning to change my aimations affects continuously in cycle but the problem is after one cycle it stops in red color it does not change its color further.... how to continue the cycle... http://jsfiddle.net/9CZFS/ providing my code below div { width:100px; height:100px; background:red; animation:myfirst 5s; -moz-animation:myfirst 5s; /* Firefox */ -webkit-animation:myfirst 5s; /* Safari and Chrome */ -o-animation:myfirst 5s; /* Opera */ } @keyframes myfirst { 0% {background:red;} 25% {background:yellow;} 50% {background:blue;} 100%

CSS animation performance

风格不统一 提交于 2019-12-05 20:32:34
I have a small hobby project in which I try to build a matrix rain: . See demo here. Or this JSFiddle My question is: how can I make this more efficient, as I can see it gets slow when I add a lot of columns. I have implemented it as rendering a lot of absolute positioned div s that are animated. Here is my CSS: div { position:absolute; width:1em; display:inline-block; color: black; animation-name: example; animation-duration: 2s; text-shadow: none; } @keyframes example { 0% {color: white; text-shadow: -1px 1px 8px white;} 15% {color: #5f5 ; text-shadow: -1px 1px 8px #5f5 ;} 100% {color: black

How to disable/change animation between views in ion-nav-view

不问归期 提交于 2019-12-05 19:30:10
问题 I started an Ionic tabs project. With this project comes the default animation between views (which is from left to right when entering, and from right to left when going back). I would like to retain control on this - by specifying two type of view animations: from bottom to up no animation So far I tried to disable the animation as follows, as was suggested on this Ionic Forum Topic but it did not change anything: <ion-nav-view animation="no-animation"></ion-nav-view> What is going on? 回答1:

Stop CSS rotate animation smoothly on unknown keyframe

╄→гoц情女王★ 提交于 2019-12-05 18:47:02
I have an image that swings using CSS rotate animation. I would like to stop it smoothly (and put it back to its original position when clicking on another element but without getting the jumpy stop feeling). It seems that the expected behaviour only happens on the first iteration of the animation but not on the upcoming ones (this is when clicking on the "slow" button during the first 2 seconds) Here is a sample code https://jsfiddle.net/pbarrientos/5v3xwak6/ I have already tried adding animation-iteration-count: 1; and adding/removing classes. var css = { '-webkit-animation-iteration-count':

CSS Transition after animation ends

…衆ロ難τιáo~ 提交于 2019-12-05 14:24:01
I have a css transition that moves an element on hover and an animation that rotates the element on hover too. There's a delay on the animation equal to the transition duration so that after it's transitioned to it's correct position, the animation starts. And it works nice, however, when we mouse off, the animation stops but it doesn't transition back down. Is it possible to get it to transition back after we mouse off and the animation ends? You can see an example here: http://codepen.io/jhealey5/pen/zvXBxM Simplified code here: div { width: 200px; height: 200px; margin: 40px auto;

CSS text-align delay with width animation

China☆狼群 提交于 2019-12-05 14:01:39
I am trying to animate my text to appear from left to right on page load. This is done by simply setting @keyframes to transition from 0% max-width to 100%. However my text-align settings seem to be applied only after the animation is complete. I just want the text content itself to reveal itself where I intend it to be, and assumed my code is correct. Am I missing something obvious here? I'm fairly new to CSS , but my research doesn't seem to indicate there are inherit properties of animation or text-align that should cause this. Code example below. Thanks! @keyframes leftright { 0% { max

Workaround for svg animation bug(s) in Chrome: backface-visibility and transform-origin sometimes without effect

百般思念 提交于 2019-12-05 11:42:23
I want to make an svg picture file containing some “card flip”-style animations, using css with a stylesheet embedded in the svg file. In Chrome, at least two problems may come up, depending on the exact code used: either the front side of the card remains on visible even when flipped, obscuring the backside, or the back side of the card is wrongly positioned. Here is a simplified version of what I'm trying to achieve: <?xml version="1.0" encoding="UTF-8" standalone="no"?> <svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org

Activate CSS3 keyframe animation when the content scrolls into view

独自空忆成欢 提交于 2019-12-05 10:34:12
I have been trying to figure out how to have animations occur when it is scrolled into view but with little to no luck. I found a JQuery plugin "Waypoints" but I lack the skills to utilize it. I am trying to use CSS3 keyframes that animate when they are scrolled into view. I made a breakthrough and am close to what I want to accomplish but it isn't quite where I want it. I have a class named "bounceinright" that makes the item bounce in to the right of the screen. Here is the CSS for that: @-webkit-keyframes bounceinright { 0% { opacity: 0; -webkit-transform: translateX(2000px); } 60% {