css-transitions

animating elements sequentially in pure css3 on loop

痞子三分冷 提交于 2019-12-04 11:19:24
问题 I'm trying to animate in elements sequentially in full css3 animations. Seems the very straight forward answer is using animation delay. However I wanted this in loop, any ideas how to make the animation loop infinitely? I found this fiddle on a similar question. Basically that's the same logic but I just wanted it looped. This was the similar [question] (https://stackoverflow.com/a/8294491/340888) Was using this: @-webkit-keyframes FadeIn { 0% { opacity:0; -webkit-transform:scale(.1);} 85%

CSS3 Transition from normal flow position to absolute

微笑、不失礼 提交于 2019-12-04 10:19:08
I've hit this one a couple of times in the past and never walked away with a good solution. If I have several HTML elements that are positioned according to natural document flow. For the sake of example, let's say it's a simple stack of div s. I would like to use CSS3 transitions to smoothly move one of those elements to a fixed location of the page (say 0,0) and then back to it's normal position. The problem is that changing the position style attribute to absolute or fixed if it wasn't there before will cause the position to snap and ignore any transition instructions. As such I would

Fill element with slanted background on hover

妖精的绣舞 提交于 2019-12-04 09:59:23
I'm trying to create an CSS button hover effect . But I didn't manage to fill the element with a slanted shape. How the hover effect was planned: Screenshot 1: How it looks actually. Screenshot 2: How I want the hover effect to look like with slanted side. .button_sliding_bg { color: #31302B; background: #FFF; padding: 12px 17px; margin: 25px; font-family: 'OpenSansBold', sans-serif; border: 3px solid #31302B; font-size: 14px; font-weight: bold; letter-spacing: 1px; text-transform: uppercase; border-radius: 2px; display: inline-block; text-align: center; cursor: pointer; box-shadow: inset 0 0

Is it possible to get the target css property value during a css3 transition in Javascript?

落爺英雄遲暮 提交于 2019-12-04 07:41:24
I've two divs positioned absolutly and I position them relative to each other. When width of one is change, then i recalculate and set positions. While I use css3 transition on ' width ' property, when i try to get ' width ' of animated one, it gives me the current value on dom. But i want to get the target value of transition to set positions correctly on begin of transition effect. Is this possible to get the target value via javascript or other ways? EDIT Below is a jsfiddle demonstrates my issue. It alerts '100px' but I need to get '300px'. http://jsfiddle.net/Mdbgs/ Thanks. That's because

Creating a CSS 'path' on hover

我的未来我决定 提交于 2019-12-04 07:31:48
问题 I'm trying to generate a 'nice' CSS menu using (mainly) CSS, but with a tiny bit of jQuery as well: My overall idea is: +------------------------+ | | | | | +---+ | | | | | | |___| | <-- Hover this center piece | | | | | | +------------------------+ +------------------------+ | _ | | |\ | <-- All start moving up to top of screen | \ +---+ | | | | | | |___| | | | | | | | +------------------------+ +------------------------+ | +---+ | | | | | | |___| | | | | || All, but one | | || moves down |

Is there a Firefox equivalent to Chrome's “translateZ(0);” to force GPU accelerated CSS animation?

不羁岁月 提交于 2019-12-04 07:24:55
I have a CSS3 transition which is smooth as silk in Chrome, but choppy in (the latest version of) Firefox I know that I can force GPU acceleration on a DOM object in Chrome by setting -webkit-transform: translateZ(0); on it Is there an equivalent style I can add to force GPU acceleration in Firefox? Firefox GPU-accelerates by default when it can. So there's nothing to "force" GPU acceleration: if it's possible, it's already done. 来源: https://stackoverflow.com/questions/9012753/is-there-a-firefox-equivalent-to-chromes-translatez0-to-force-gpu-accelera

Link hover causes background-size: cover; to shift in Chrome

。_饼干妹妹 提交于 2019-12-04 06:47:21
Using CSS3, I have set a background image as a cover. Upon first loading the page in Chrome and hovering over a link, the background around the text shifts slightly (but quite noticeably). I am using a transition for the hover, but the background shift also happens with the transition removed. My guess is that the background is resizing during hover, but I'm not sure how to keep this from happening. Once it has shifted, you can rollover other links without any problem. After refreshing the page, the problem persists. Website is here: http://tylerbritt.com/ Styling is as such: body{ text-align:

Why is rotateY (flip) css3 animation flickering in Chrome?

北战南征 提交于 2019-12-04 06:05:00
I have made a jsFiddle: http://jsfiddle.net/Grezzo/JR2Lu/ When you hit the i key on your keyboard, the picture flips around to show some text, but during the flip animation it flickers (particularly the text flickers) when viewed in Chrome. (note that I am using -prefix-free JS library so that I don't have to prefix with browser specific CSS properties.) Why is it flickering and how can I stop it? UPDATE: Flicker is noticable on Chrome 20.0.1132.47 m running on XP, and whatever the latest version for OS X 10.7.4 Lion is (I'm not near my Mac right now to check) Well, this is a little weird. By

How can I prevent a responsive nav menu (powered by a CSS3 transition) from animating when different media queries take effect?

六眼飞鱼酱① 提交于 2019-12-04 05:59:51
Preface I'm trying to create a responsive website with a navigation menu that satisfies the following two requirements: Navigation is fully visible in a normal browser window, laid out horizontally. Navigation becomes a toggleable vertical menu for mobile devices and small screens, which animates between its "opened" and "closed" state. I want performance to be good on mobile devices — especially on iOS — which means that the animation should use a GPU-accelerated translate3d transform CSS transition. My Problem Setting this up was a piece of cake, and for the most part it works great. I used

Are CSS3 properties like animate too CPU intensive?

爱⌒轻易说出口 提交于 2019-12-04 05:27:40
will this repetitive animation code slow down my system?: @-webkit-keyframes animate {-webkit-animation-iteration-count:infinite;...} Are all CSS3 properties CPU intensive ? Thanks. Avoid using box-shadow & text-shadow. Don't try and animate the whole page, or the body element and use translate3d, scale3d, rotate3d as they are hardware accelerated on computers and mobile devices. As stated above, avoid the OVERUSE of animating properties. I however doubt that one or even four infinitely animated elements will slow down your page. Improving the Performance of your HTML5 App UPDATE Beware!