css-transitions

How to Remove Delay on Css3 Slide out transition which uses max-height transition

≡放荡痞女 提交于 2019-12-03 09:25:32
问题 I'm having an issue with a transition I'm using to slide a panel in and out. Please take a look at the following jsbin http://jsbin.com/uvejuj/1/ Notice that when i click the toggle button the first time the transition occurs immediately. However if i click the button again to close then the transition delays the amount of time of the transition before it executes. What is causing the delay on close out and how can i get rid of it? Thanks 回答1: It's because you're animating between 0 and

Make some gradient move endlessly in a progress bar like in Windows 7

扶醉桌前 提交于 2019-12-03 09:20:10
问题 I wonder if it's possible to make a gradient move inside a div from left to right endlessly using only CSS3 features? There is no need to support all browsers, I just want to experiment. The example is that shiny effect on top of the blue progress bar. An example is appreciated. 回答1: Using this CSS you can let a gradient move endlessly (based on the link in Michael's comment): .bar { background: -webkit-linear-gradient(left , #0193CD 30%, #66D4E5 80%, #0193CD 100%) repeat; -webkit-background

Animating jQueryUI Sortable using CSS3 transitions

﹥>﹥吖頭↗ 提交于 2019-12-03 07:59:58
How can I use CSS3 transitions (or any other means) to make a jQuery Sortable act more like the list re-ordering in iOS, where list items smoothly animate while dragging, so items scurry out of the way as you drag? [editing to turn this into an FAQ and save time for anyone else who wants to figure this out] https://gist.github.com/801570 shows how to smoothly animate dragging using jQuery Sortable . Items scurry out of the way as you drag. It uses CSS3 Transitions and the effect was exactly what I am looking for. Very cool. Here's the code: JSFIDDLE: http://jsfiddle.net/LTWMp/ HTML: <style

Change background color every 30s (fade transition)

瘦欲@ 提交于 2019-12-03 07:24:50
问题 I would like someone to tell me what's the code for making a webpage background color (the background color of the whole page) to change (fade transition) every 30s to a given color variety. Is it simple? I guess css will make it easier? I've searched over the internet and I only found gradients which is not what I want. Thank you in advance. I 've search codepen and jsfiffle for examples but no one had something that simple :/ Example: While browsing my page I want the background color to

animating elements sequentially in pure css3 on loop

孤人 提交于 2019-12-03 06:59:39
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% {opacity:1; -webkit-transform:scale(1.05);} 100% {-webkit-transform:scale(1); } } .myClass img { float

Transparent CSS background color

喜你入骨 提交于 2019-12-03 06:26:22
问题 I want to make the list menu disappear by using opacity without affecting font. Is it possible with CSS3? 回答1: now you can use rgba in CSS properties like this: .class{ background: rgba(0,0,0,0.5); } 0.5 is the transparency , change the values according to your design. Live demo http://jsfiddle.net/EeAaB/ more info http://css-tricks.com/rgba-browser-support/ 回答2: Keep these three options in mind (you want #3): 1) Whole element is transparent: visibility: hidden; 2) Whole element is somewhat

CSS3 transition fadein with display:none

耗尽温柔 提交于 2019-12-03 06:15:42
I've got some element I want to fade with CSS3 . It can be simply done by 2 classes with opacity: 0 and opacity: 1 , but problem is faded element is some dropdown menu and it has elements under it, so even if it has opacity: 0, its still 'clickable' and elements under it are not. If I add display: none; attribute, element is not animated. Is it possible with css only to avoid it? I've checked this but didnt find working solution http://jsfiddle.net/Eh7jr/ Instead of display:none , try using visibility: hidden; FIDDLE See this article which states: visibility animates despite the CSS Basic Box

CSS3 transitions want to add a colour and fade it away

核能气质少年 提交于 2019-12-03 05:49:18
问题 I want to make a DIV background (which doesn't have a background color) flash red then ease out to blank again. now I have used JS to add a new CLASS (which adds the red) to the DIV in question and CSS3 to add an easing to the background color. but it eases it IN, what I want is it to go RED then ease out. I guess I could do this by using JS to add multiple CLasss after a delay. but can CSS3 be used to do this entirely? 回答1: If you want something like a highlighting you may want to use CSS3

Transition only for the border on hover, but not for background

懵懂的女人 提交于 2019-12-03 05:40:51
Here I have some CSS: #image-edges-beneath:hover{ background-color: blue; } #image-edges:hover{ background-color: blue; } #image-edges-beneat:hover:after{ -webkit-transition: all 1s ease; -moz-transition: all 1s ease; -o-transition: all 1s ease; -ms-transition: all 1s ease; transition: all 1s ease; border: 2px solid #F1FD6D; } #image-edges:hover:after{ -webkit-transition: all 1s ease; -moz-transition: all 1s ease; -o-transition: all 1s ease; -ms-transition: all 1s ease; transition: all 1s ease; border: 2px solid #F1FD6D; } However this does not work. The only thing which happens is that the

Spinner for Twitter Bootstrap .btn

社会主义新天地 提交于 2019-12-03 04:30:37
问题 Im trying to create spinners for Twitter Bootstrap buttons. Spinners should indicate some work in progress (ie. ajax request). Here is small example: http://jsfiddle.net/AndrewDryga/zcX4h/1/ HTML (full on jsfiddle): Unknown element (no animation here!): <p> <button class="btn-success has-spinner"> <span class="spinner"><i class="icon-spin icon-refresh"></i></span> Foo </button> </p> Works when width is defined: <p> <a class="btn btn-success has-spinner"> <span class="spinner"><i class="icon