css-transitions

IE10+ Select element options list not interpreted as a child of parent element

馋奶兔 提交于 2019-12-11 11:50:31
问题 In IE 10 and 11, a rendered options list of a <select> element doesn't seem to be considered a child of its parent element, at least as far as transitions are concerned. Assume we have a <div> that is styled using CSS transitions such that on hover, it slides right 100px and off hover, it slides back. If we add a <select> element inside the <div> , it still slides right on hover. However, if I click the <select> and hover inside the list of <option>'s , the <div> slides back into its original

Should I use/avoid jQuery animate? [closed]

不打扰是莪最后的温柔 提交于 2019-12-11 11:44:11
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 3 years ago . A question popped to mind answering to this one, where OP wanted to apply this transition: test.css({transition: 'height 1s linear', height: '100px'}); And then to go back to this: test.css({transition: 'none', height: '0px'}); He said he needed it to be done from js, and

CSS3 transition cannot repeat

为君一笑 提交于 2019-12-11 11:36:33
问题 The transition effect run only once onload, but not work when clicking another tab. How to make it run when changing tabs every times? When the navigation button is clicked, the content should be show up with the transition effects. HTML: <body onload="setCurrent('home','home_content')"> <div id="wrap" class="center"> <div class="top"> <header class="left"> <h1><a href="#">transition</a></h1> </header> </div> <div class="right"> <nav class="menu"> <ul> <li><a class="" id="home" onclick=

Expand background from center (CSS / Javascript)

家住魔仙堡 提交于 2019-12-11 11:25:10
问题 Please note the example below has music play automatically! If you wish to mute your speakers, please do so before accessing the example. I'm recreating this site which was originally done in flash. Basically on the flash site, there are 5 main buttons, 'Discover', 'Experience', 'Reside', 'Interact', and 'Connect'. When you hover these buttons, the background changes slightly as the bottom border expands out from the center. I wouldn't mind setting the background as an image or using a border

CSS opacity animation safari bug?

点点圈 提交于 2019-12-11 11:05:52
问题 I have a simple animation (only for Safari in this example): h1 { -webkit-animation: moveDown 1s ease-in-out; } @-webkit-keyframes moveDown { 0% {-webkit-transform: translateY(-20px); opacity: 0;} 100% {-webkit-transform: translateY(0px); opacity: 1;} } In the latest Safari (5.1.5) it works just fine. But by accident I viewed the example in an older Safari (5.0.6) and saw nothing. The h1 was gone. By kind of triggering eather by adding a none-rotate (opacity & animation works): @-webkit

Chrome CSS image transitions affect other elements

南笙酒味 提交于 2019-12-11 10:23:40
问题 I have a menu with images as backgrounds for buttons which animate on hover. The problem is that when I hover over an image and it gets animated (enlarged and rotated) other elements on page treble a few pixels with no apparent reason. I have create a JSfiddle hoping that I could reproduce the bug existent on my website (where other images on page got moved) and still give you a not-too-long code. The result: Well... Instead of images getting that treble is the JSfiddle result text that moves

Select the first three elements in CSS and repeat

狂风中的少年 提交于 2019-12-11 10:18:59
问题 I have a list of N cards, floated, with width:33.3333% . When the user clicks on a card, it rotate and expands. However, I would like that every 3:rd card started from the 1:st had a certain margin , every 3:rd card started from the 2:nd another margin and every 3:rd started from the 3:rd yet another margin . Is there a way to do this with CSS selectors, for example child selector? Plunker demo Example: <!DOCTYPE html> <html> <head> <script data-require="jquery@*" data-semver="2.1.4" src=

CSS Transition not working in only Mozila firefox browser

不打扰是莪最后的温柔 提交于 2019-12-11 08:46:27
问题 Trying to fix this CSS3 Transition for Mozila firefox , it's working perfectly in Chrome and Opera but not working in Mozila firefox 35.0.1+ . I have also applied -moz-keyframes on CSS. CSS: /****************** * Bounce in Left * *******************/ @-webkit-keyframes bounceInLeft { 0% { opacity: 0; -webkit-transform: translateX(-1000px); } 80% { -webkit-transform: translateX(-10px); } 100% { -webkit-transform: translateX(0); } } @-moz-keyframes bounceInLeft { 0% { opacity: 0; -moz-transform

How to create an orbit of three elements around a logo

六月ゝ 毕业季﹏ 提交于 2019-12-11 08:15:46
问题 I'm a newbie and I'm on my first project: I have three elements (images) and a logo. When I click on an image this one and the other two ones should move in an orbit of 360° around the logo (with a low z-index when they go on the back of the logo so they can disappear and then reappear). Is this possible with jquery and css3? 回答1: Hiya 2 demos starts with simple: 1) (using divs) http://jsfiddle.net/ErN8X/2/show & code: http://jsfiddle.net/ErN8X/2/ 2) http://jsfiddle.net/qXP7H/show/ and code:

Smoothly animate a div as its position changes

天涯浪子 提交于 2019-12-11 07:49:44
问题 I have an absolutely positioned div: class MyDiv extends React.Component { state = { stepCount: 0 }; componentDidMount(){ setInterval(() => { this.setState({ stepCount: this.state.stepCount + 1 }) }, 1000); } render(){ return (<div style={{ left: this.state.stepCount * 10 + "%" }} />); } } CSS div { transition: 1s linear; } Every second, I translate the div left by 10%. I want the transitions to look smooth, but there is a slight stutter. Example: https://codepen.io/anon/pen/QoNGbQ 回答1: Use