css-animations

Using CSS3 transforms/animations with font-face produces “wobbly” spinner gif-like

一笑奈何 提交于 2019-12-04 16:41:56
问题 I'm using CSS transforms/animations with font-face (twitter bootstrap/font-awesome) to produce a spinner gif-like icon. The problem is that the icon wobbles as it revolves around 360degrees. See this JSFiddle to see what I mean. Does anyone know how to make it not wobble? Or at least make it rotate a little more smoothly? Here's the code for that below: CSS: i.icon-repeat { -webkit-animation: Rotate 500ms infinite linear; -moz-animation: Rotate 500ms infinite linear; -ms-animation: Rotate

Is there a standard way to provide alt=“” text for screen-readers on HTML5 ads / animations?

人盡茶涼 提交于 2019-12-04 14:19:15
When creating HTML5 animations, is there a technique that can be used to "synchronize" the alternate text so that screen-readers reads the given element that appears the moment it appears (or triggered by an event / timeline-driven)? Ideally, something that I could invoke with GSAP (using it as the animation library for my projects). Or could such a thing just make the screen-reader speak and pause repeatedly too often, ending up sounding more frustrating than actually enhancing the experience of the user? Would I be better off just to paste essentially a "script" of all the animation that is

CSS3 animation - smooth infinite cycle

房东的猫 提交于 2019-12-04 12:55:37
问题 I've made a small background animation where a div changes color over time. It works smoothly, but when it gets to 100% it jumps straight to 0% without any transition. I've searched on google and tried different ways of doing the animation, but I've been unable to get a fluid "restart" if the animation. What am I missing? -webkit-animation: pulsate 20s infinite; animation: pulsate 20s infinite; -moz-animation: pulsate 20s infinite; @-webkit-keyframes pulsate { 0% {background: @black} 25%

Not able to spin the cog based on the centre origin

╄→гoц情女王★ 提交于 2019-12-04 11:56:46
I am trying to make a hover effect which will spin the three different cog svg icon to its respected centre origin. I tried using transform-origin as centre but no luck. Any help would be appreciated. Here is my code below. .cog--middle { transform: rotate(0deg); transition: 0.3s; transform-origin: center center; } svg:hover .cog--middle { transform: rotate(360deg); } <svg width="110px" height="100px" viewBox="0 0 110 100" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" > <title>ic--rollout</title> <g class="cog--middle"> <path d="M33.6286316,13

Animating SVG paths with discontinuous parts

一个人想着一个人 提交于 2019-12-04 11:53:59
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 240 120"> <style> path{stroke-dasharray:500;stroke-dashoffset:500;fill:none;stroke:#000;stroke-width:6px

Stop infinite CSS3 animation and smoothly revert to initial state

一个人想着一个人 提交于 2019-12-04 11:07:25
Having some trouble building a CSS3 loader using keyframe animations. The loader consists of 4 boxes that animate going up and down. The issue I'm having is that when the animation is supposed to stop, the boxes jump to the initial position. The behaviour I'm looking for is: loader is animating infinitely until loading is done, at which point it should animate to the initial position and stop, sort of like having animation-iteration-count: infinite and changing it to animation-iteration-count: 1 to stop the animation. (which doesn't work btw). See this fiddle to see what I mean: https:/

Freeze keyframe animation for debugging

梦想的初衷 提交于 2019-12-04 10:22:31
Is it possible to freeze a CSS keyframe animation with developer tools to inspect it? I need to identify animated elements in a keyframe animation. Here is a playground : body{background:#000;} .circle{ position:relative; width:10px;padding-bottom:50px; margin:100px auto; } .circle div { position:absolute; top:0; left:0; width:100%; height:100%; -webkit-animation: rotate 1.5s infinite; -moz-animation: rotate 1.5s infinite; -o-animation: rotate 1.5s infinite; animation: rotate 1.5s infinite; -webkit-animation-timing-function: linear; -moz-animation-timing-function: linear; -o-animation-timing

Pure CSS rotate animation broken while in infinite loop

眉间皱痕 提交于 2019-12-04 09:14:38
It's been a while since I asked a question here. So excuse me if I do anything wrong. I have an issue with CSS animation . I would like my animation to keep repeating it self but without loosing the initial effects . However it seems like there is a bug either in my code or in CSS animation behavior. After it completes first 2 rotate animations (spin, spinback) defined. The loop begins but the new animation is not as same as before. My goal is to create rotate animation on 6 boxes in order , one at a time. When all boxes turned, they should start turning back to original state again in order,

left and top properties are not animated

强颜欢笑 提交于 2019-12-04 06:32:32
问题 In the animation below the transform is animated correctly, but the left and top properties are not. Why is this? .element-animation { background-color: yellow; width: 30px; height: 30px; animation: animationFrames ease 2s; animation-iteration-count: infinite; } @keyframes animationFrames { 0% { left: 0px; top: 0px; opacity: 1; transform: rotate(0deg) scaleX(1) scaleY(1) skewX(0deg) skewY(0deg); } 25% { left: 0px; top: -90px; } 75% { left: 200px; top: -90px; } 100% { left: 200px; top: 0px;

CSS3 Fade Animations

↘锁芯ラ 提交于 2019-12-04 05:50:47
问题 I am trying to combine 2 CSS3 Animations that fade in and out. Can anyone help me with this? This is what I have so far - jsFiddle 回答1: Ok got your question updated my answer accordingly, the best and the least you can do it is like this Demo Actual Markup + Styles Required(Don't use it unless and until CSS3 animations are fully supported by all browsers) HTML <div class="out"><span>example</span></div> CSS div { animation:demo 7s; -moz-animation:demo 7s; /* Firefox */ -webkit-animation:demo