css-transitions

Trigger CSS3 transition on page load

回眸只為那壹抹淺笑 提交于 2019-12-04 05:08:25
I am trying to achieve a loading effect on the page load by CSS3 width transition. Here is the demo . HTML <div class="skill-bar"> <span class="w70"></span> </div> CSS .skill-bar { width: 57%; float: left; height: 11px; border-radius: 5px; position: relative; margin: 6px 0 12px 0; border: 2px solid #00edc2; } .skill-bar span { background: #00edc2; height: 7px; border-radius: 5px; display: inline-block; } .skill-bar span.w70 { width: 70%; } .skill-bar span { width: 0; transition: width 1s ease; -webkit-transition: width 1s ease; background-color: #00edc2; } Its not working as expected. I need

mix-blend-mode issues in Chrome

拥有回忆 提交于 2019-12-04 05:06:33
I've been trying to use the mix-blend-mode on a page that has contains instances of css opacity transitions. What appears to be happening is that the div containing the mix-blend-mode displays as it would without the blend mode during the transition, or rather, while the animation is in progress. I've only found it to be an issue in Chrome. In my example, while the div is transforming the blend-mode displays correctly over the image but not over the page background. Once the transition is complete it goes back to display as it should. In other words the blended div appears as solid yellow on

Fixed Responsive Top Nav / Off Canvas Nav with Single DOM Element

大憨熊 提交于 2019-12-04 04:44:04
问题 Let's get the fiddles out of the way first (built on the Foundation responsive framework): Fiddle 1: one nav element, but becomes unfixed when side nav slides out Fiddle 2: working but with multiple nav elments Okay so, I have been racking my brain trying to develop and elegant solution for the following: 1) Make a responsive, fixed navigation that switches from stretching across the top to sliding out of the side on smaller screen sizes (ala the Facebook app) 2) I'd like to use the same DOM

Fixed position misbehaviour in IE11

China☆狼群 提交于 2019-12-04 04:42:39
I am experiencing elements position misbehaviour into my page, in IE(11) only; live link here . The logotext, the menu and the left sidebar text, remain in place doesn't move with the wrapper when the left slider is open (clicking on info+ button). I've read about position: fixed + transition in IE problems. I've tried to apply position: expression(fixed); to the header but something went wrong and the wrapper receive a brake-movement at open/closing slider. (The sidebar didn't work with position: expression(fixed); ) Also I've tried to tweak the css modifying the element position values in

jQuery addClass method chaining to perform CSS transitions

六月ゝ 毕业季﹏ 提交于 2019-12-04 02:13:09
问题 What I would like to do ( broke ): <div></div> <button>go</button> $('button').click(function () { $('div').css({ 'transition': 'left 1000ms' }).addClass('left').addClass('left_more'); }); http://jsfiddle.net/0bm4wq7h/13/ Still broke : <div></div> <button>go</button> $('button').click(function () { $('div').css({ 'transition': 'left 1000ms' }).addClass('left'); console.log('test'); $('div').addClass('left_more'); }); http://jsfiddle.net/fwL3dwz2/3/ But this works : <div></div> <button>go<

CSS3 transitions chaining

拜拜、爱过 提交于 2019-12-04 01:50:22
What is a syntactically clean solution to run a chain of individual CSS3 transitions on a single element, one by one? An example: set left to 10px and opacity to 1 through 200ms set left to 30px through 500ms set left to 50px and opacity to 0 through 200ms Can this be done without JavaScript? If not, how to code it cleanly with JavaScript? I believe you want a CSS3 animation where you define the CSS styles at different points in the animation and the browser does the tweening for you. Here's one description of it: http://css3.bradshawenterprises.com/animations/ . You will have to check on

Hover state is maintained during a transition even if the element has gone

≡放荡痞女 提交于 2019-12-04 01:12:19
Consider a simple element, and its associated CSS: <div id="content">Hover me !</div> #content { width: 100px; height: 100px; } #content:hover { transform: translateY(500px); transition: transform 1s 500ms; } JSFiddle The principle is straightforward: while the element is hovered, it must go down. The problem is, when the mouse doesn't move , that the :hover state is maintained even if the element is not physically below the mouse anymore (due to the translation). The state seems to be updated only after an mouse move. Notice the cursor (a pointer) and its relative position with the element!

CSS3 transition - change animation “anchor point”?

风格不统一 提交于 2019-12-04 00:53:54
I am trying to use css3 transition to enlarge a div width and height on :hover. It works fine but I need to change the anchor point of the animation. As for now it is set to the bottom left of the div and I need it to be from the top left corner. Is that possible ? Thanks I think you might be looking for the transform-origin property. This allows you to say something like: transform-origin:left top; You can find more information about it here: http://www.w3schools.com/cssref/css3_pr_transform-origin.asp Hope this helps! 来源: https://stackoverflow.com/questions/9109319/css3-transition-change

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

自闭症网瘾萝莉.ら 提交于 2019-12-04 00:19:38
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 time. However, this does not work as the flyout appears. They are instantly at opacity: 1 and even with

How to stop CSS3 transition

我的未来我决定 提交于 2019-12-03 22:35:20
I want to stop a transition that is in progress. I have found a few references[1][2] scattered around the internet but I can't seem to piece it together. Here's a fiddle of the first suggestion (With jQuery and CSS Transit for context): http://jsfiddle.net/thomseddon/gLjuH/ Thanks [1] https://twitter.com/evilhackerdude/status/20466821462 [2] github.com/madrobby/zepto/issues/508 So I figured it out: http://jsfiddle.net/thomseddon/gLjuH/3/ The trick is to set each css property you are animating to its current value (possibly mid transition) like: $(this).css('prop', $(this).css('prop'));