css-animations

How I can animate circular progress bar from left to right?

主宰稳场 提交于 2019-11-29 11:54:34
I have a circle progress bar, only with HTML and CSS, I used keyframes for loading (animation). But the loading is from right to left I wanna reverse it. I edit my CSS keyframes but nothing at all. I try also animation reverse again nothing. Fiddle: https://jsfiddle.net/d20wu8e4/ My Result (image): https://ibb.co/0KCSsZY What I want: https://ibb.co/MGCpHqS * { box-sizing:border-box; } .progress { width: 150px; height: 150px; background: none; margin: 0 auto; box-shadow: none; position: relative; } .progress:after { content: ""; width: 100%; height: 100%; border-radius: 50%; border: 3px solid

css3 image crossfade (no javascript)

自古美人都是妖i 提交于 2019-11-29 11:17:16
I'm pretty sure it's possible to do a css only image crossfade using the new css animation features. My requirements are that it should work for arbitrary number of images without javascript. Does anyone know how it's done? How I'm starting off: img(src='img1.png') img(src='img2.png') img(src='img3.png') img(src='img4.png') Next all the images are set to stack on top of each other with the first one showing: img opacity 0 transition 1s position absolute &:first-child opacity 100 Now how do I go through each image? Edit: Seems impossible. Requires javascript. This article is the best I've seen

Pure CSS animation visibility with delay

浪尽此生 提交于 2019-11-29 10:56:23
问题 I am trying to implement some animation onLoad without Javascript . JS is easy, CSS is ... not. I have a div which should be on display: none; and should be display: block; after 3 secondes. Lots of resources told me animate does not work with display , but should with visibility (which I use often in my transition). Right know I have this terrible javascript function : <script type="text/javascript"> $(document).ready(function(){ $(".js_only").hide(); setTimeout(function () { $(".js_only")

-webkit-animation-play-state not working on iOS 8.1 (probably lower too)

℡╲_俬逩灬. 提交于 2019-11-29 10:46:35
I have an animation running on page load and with javascript I add a class containing the -webkit-animation-play-state:paused; Working fine on OSX safari and all other browsers (even PC) too but on mobile, only on iOS that the animation doesn't seem to paused when called. Here's a fiddle on how the animation state is running and paused. http://jsfiddle.net/uc9c5/2/ Try it on iOS, you'll see that it's totally ignored. Workaround approach for iOS 8-9 Safari that use -webkit-animation: none !important; instead of -webkit-animation-play-state:paused; This approach is for GWD, but can apply

Is it safe to remove a property from the `0%` keyframe of a CSS animation if it is already declared in the class the animation is applied to?

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-29 10:05:35
问题 Context: According to the Animation Spec: If a ‘0%’ or ‘from’ keyframe is not specified, then the user agent constructs a ‘0%’ keyframe using the computed values of the properties being animated. If a ‘100%’ or ‘to’ keyframe is not specified, then the user agent constructs a ‘100%’ keyframe using the computed values of the properties being animated. This can lead to two different interpretations: A) Declare the property in the class and not in the 0% or from keyframe. B) Declare the property

CSS3 animations and performance: are there any benchmarks?

北城以北 提交于 2019-11-29 09:24:31
Every time I visit a page with CSS3 animations, my notebook becomes noisy (gives me a signal that it does some heavy job on there). I wouldn't care myself if at least resulting animations were smooth enough. But they are not. What I get as a result on my 2.4 GHz Core 2 Duo with 8GB of RAM and dedicated NVIDIA GeForce 320M (not much, but should be enough for some css, no?...) is some jerky, randomly flickering, in some cases having weird artifacts... "animation", that is often worse then it's JS equivalent... Has anyone done any comparisons of JS vs CSS animations? Or benchmarking of proposed

CSS3 animations with transform causes blurred elements on Webkit

[亡魂溺海] 提交于 2019-11-29 06:37:57
问题 So I've got some native elements ( div s) with various effects applied to them ( border-radius , box-shadow and transform: scale() ). When I animate them, two weird things happen: Even though I'm not trying to animate the scale, if I don't put the scale in the animation, it is ignored. When I put the scale in the animation, Webkit blurs the elements See the example here: http://jsfiddle.net/trolleymusic/RHeCL/ - the buttons at the bottom will trigger the issues. The first issue happens in

Transition flex-grow of items in a flexbox

江枫思渺然 提交于 2019-11-29 05:29:08
Is it possible to transition the items in an flexbox? When you click I want all items to collapse except the one that is clicked. The one that is clicked should use all available space from the container. // only works once! $(".item").click(function() { $(".item").not(this).each(function() { $(this).addClass("collapse"); }); }); html, body { width: 100%; height: 100%; margin: 0; padding: 0; border: 0; overflow: hidden; } .container { flex-grow: 1; flex-shrink: 0; flex-basis: auto; display: flex; flex-direction: column; height: 100%; } .item { flex-grow: 1; flex-shrink: 1; flex-basis: auto;

CSS slider with arrows using animation

断了今生、忘了曾经 提交于 2019-11-29 04:38:55
I am trying to achieve a CSS only slider. When hover ing left and right arrows, the slider has to slide . Of course. I tried something using animation-play-state , animation-fill-mode (to keep the positions) and animation-direction but I'm not able to fully make it work. Starting with animation-play-state: paused , hover ing the arrows changes it to running . On hover of the right arrow, everything is fine. We can hover, leave, hover again. But, as soon as I hover the left arrow (that changes the animation-direction to reverse ), it's broken. Simplified snippet : .wrapper { overflow: hidden;

Can't stop css animation disappearing after last key frame

ⅰ亾dé卋堺 提交于 2019-11-29 03:19:57
I've got a simple css animation that I'd like to play and then stop on the last frame fully displaying the image. But currently at the moment it plays then seems to revert back to frame one so the santas face disappears. How can i make it play through once then stop on the last key frame or display the image without it fading out again? http://jsfiddle.net/uy25Y/ <img class="santaface" src="http://imgs.tuts.dragoart.com/how-to-draw-a-santa-face_1_000000001282_3.jpg"> .santaface{ opacity:0; position: absolute; left:40%; top:20%; width:20%; -webkit-animation-name: santaappear; -webkit-animation