css-animations

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

独自空忆成欢 提交于 2019-12-21 19:14:20
问题 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

webkit translate3d issues (peek-thru)

雨燕双飞 提交于 2019-12-21 12:10:10
问题 I'm building an iOS app with PhoneGap. I'm using translate3d CSS animations to create the 'flip' effect. This works great on simpler elements...a DIV with front/back divs and maybe an extra span or two. But when I attempt to flip a larger element...namely the entire screen, I get redraw glitches. What happens as soon as I swap the css class to start the transition, parts of the 'bottom' div pop-through the 'top' div, then the flip happens, then they pop-out again. And it's not the entire

How to transition child when parent goes from display: none to block

情到浓时终转凉″ 提交于 2019-12-21 07:19:10
问题 I'm having trouble creating a flyout menu with a specific effect. The flyout goes from display:none to block and then I use jquery to animate opacity from 0 to 1 (and vice versa). This is necessary because otherwise the transition does not happen when the element has just had it's display property changed. I did not think that this would propagate to children. But inside of my flyout I have 4 columns of links that have an opacity transition, each with it's own delay so they come in one at a

Can I set the progress of a keyframe animation to a specific stage?

孤者浪人 提交于 2019-12-21 07:19:10
问题 I have a keyframe animation with multiple steps: @keyframes rotateLeftSideCustom { 0% { } 40% { -webkit-transform: rotateY(-15deg); transform: rotateY(-15deg); opacity: .8; -webkit-animation-timing-function: ease-out; animation-timing-function: ease-out; } 100% { -webkit-transform: scale(0.8) translateZ(-200px); transform: scale(0.8) translateZ(-200px); opacity: 0; } } .section-animation { -webkit-transform-origin: 100% 50%; transform-origin: 100% 50%; -webkit-animation: rotateLeftSideCustom

How to iterate keyframe percentages Less CSS

爷,独闯天下 提交于 2019-12-21 05:11:53
问题 I have read Less#loops and Less#functions docs. But I can't figure out how to apply percentage function, or a similar way to loop percentages progressively without using such function. When I calculate it, out of a loop, as pointed out in another post width: percentage(140/620); , it works, but not when trying to loop using variables. On 2014 @pixelass suggested to use an external library to loop easier, but I don't feel like using an external library. What I am trying to loop (and doesn't

CSS animate a div with absolute positioning from left 0 to right 0

眉间皱痕 提交于 2019-12-21 04:35:34
问题 Consider this sample. http://jsfiddle.net/dfabulich/ncbzz5zu/3/ <html> <body> <style> .container { position: relative; width: 80%; height: 100px; border: 1px solid black; } @keyframes slide { from { background-color: red; left: 0; } to { background-color: blue; right: 0; } } .animated { position: absolute; width: 20%; height: 100%; top: 0; background-color: red; animation-duration: 3s; animation-name: slide; animation-iteration-count: infinite; } </style> <div class=container> <div class

how make a looped animation wait using css3

∥☆過路亽.° 提交于 2019-12-20 21:51:13
问题 I have a css3 animation with the following: @-webkit-keyframes rotate { from { -webkit-transform: rotate(0deg); } to { -webkit-transform: rotate(360deg); } } .animated { -webkit-animation-name: rotate; -webkit-animation-duration: 2.4s; -webkit-animation-iteration-count: infinite; -webkit-transition-timing-function: ease-in-out; } It works flawlessly, well..., I want to make it wait between the loops: animation-start , animation-finish, wait(about 0.5s) , animation start , animation end, wait

How to create CSS3 bounce effect

左心房为你撑大大i 提交于 2019-12-20 19:39:50
问题 I am trying to create a bounce effect at the end of the animation without using any 3rd party code or javascript. I have no idea of how to do this only using pure CSS. Here is what I have so far: HTML: <div></div> <div></div> <div></div> CSS: div { background: tomato; width: 100px; height: 100px; margin-bottom: 10px; transition: transform 0.3s ease-in; transform-origin: top left; } div:hover { -webkit-transform: scale3d(5, 5, 5); transform: scale3d(5); } DEMO 回答1: If all you need is a very

Css and Jquery Animation

喜欢而已 提交于 2019-12-20 16:41:16
问题 What I'm trying to achieve is this animation Link to the animation is Material Design What am I missing?How can I achieve the above result without using position:absolute for the items what I've done so far HTML: <div class="product-list " id="product_list"> <div class="item "> <a href="#" data-id="228"> <div class="item-top"> <img width="211" height="165" src="" class="et-portfolio-thumbnail img-responsive wp-post-image" alt="product66_26"> </div> <div class="item-bottom"> <div class="item

add delayed time in css3 animation

半腔热情 提交于 2019-12-20 12:37:08
问题 I just set an animation to a div and it succeeded. Now I want to get it proved because its delay is too short! so how can I add the delayed time between animation (0% to 25%) and animation (25% to 50%) here is the code: #flow{ position:absolute; -webkit-animation:mymove 10s ease-in-out; -webkit-animation-iteration-count:3; -webkit-animation-delay:1s; } @-webkit-keyframes mymove { 0%{left:5px;} 25%{left:127px;} 50%{left:249px;} 75%{left:371px;} 100%{left:5px;} } everyone!Thanks for your