Css3 transition on scale only
You’ve got your -webkit-transition: -moz-transform .3s ease-out; -moz-transition: -webkit-transform .3s ease-out; switched. I have to assume that’s the problem.
You’ve got your -webkit-transition: -moz-transform .3s ease-out; -moz-transition: -webkit-transform .3s ease-out; switched. I have to assume that’s the problem.
Trying to do the same thing. As of right now I do not think it is possible to animate a gradient. I’m using a workaround. Instead of animating the gradient, I’m using a semi-transparent gradient for the background-image and then animating the background color. #button { background-color: #dbdbdb; background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, … Read more
I was able to get this to work with css3 animation. Just apply the highlight class to new elements: $(‘#add-element’).click(function() { $(‘<div class=”highlight”>new element</div>’).appendTo(‘#content’); }); @keyframes yellow-fade { 0% { background: yellow; } 100% { background: none; } } .highlight { animation: yellow-fade 2s ease-in 1; } <script src=”https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js”></script> <button id=”add-element”>Add element</button> <div id=”content”></div> I … Read more
I found out a way of not only animating from left to right / right to left, but also from centered text. The trick is to apply a width of ‘0’. ul { background: #fff; padding: 16px; border: 1px solid #e2e2e2; } li { list-style: none; letter-spacing: 1px; font: 12px ‘Tahoma’; line-height: 24px; color: #444; … Read more
Try this: header nav ul li a:hover{} header nav ul li a:hover span{ width: 100%; /* YOU’LL NEED TO ADJUST THIS, IT CANNOT BE AUTO*/ overflow: visible; text-align: right; } header nav ul li a span{ position: absolute; width: 0; right: 45px; overflow: hidden; transition:width 0.25s; -webkit-transition:width .25s; -moz-transition: width 0.25s; font-size: 16px; display:block; /*HERE … Read more
Update 2017 In response to @Matt Coughlin’s post, browsers that natively support animation, now render CSS and JS animations on their own thread…. CSS-based animations, and Web Animations where supported natively, are typically handled on a thread known as the “compositor thread.” This is different from the browser’s “main thread”, where styling, layout, painting, and … Read more
The key is to transition the margin by a formula. There is a little “wiggle” that is annoying during the transition if it is floated. EDITED ADDING OPTIONS Option 1: Expands within space reserved around it http://jsfiddle.net/xcWge/14/: #square { width: 10px; height: 10px; margin: 100px; /*for centering purposes*/ -webkit-transition: width 1s, height 1s, margin 1s; … Read more
Your fiddle does work for me in Firefox. And as far as I know, and if this article is up to date this is the only browser that can animate pseudo-elements. EDIT: As of 2016, the link to article is broken and the relevant WebKit bug was fixed 4 years ago. Read on to see … Read more
Yes, there is a way: http://jsfiddle.net/6C42Q/12/ By using CSS3 transitions, and manipulate height, rather than display property: .hidden { height: 0px; -webkit-transition: height 0.5s linear; -moz-transition: height 0.5s linear; -ms-transition: height 0.5s linear; -o-transition: height 0.5s linear; transition: height 0.5s linear; } .hidden.open { height: 200px; -webkit-transition: height 0.5s linear; -moz-transition: height 0.5s linear; -ms-transition: … Read more
Well, after I started a bounty because I also have this problem I finally found what seems to be the problem. When you are using absolute position (or relative, as in your case), if you re-render the whole list every time, React will re-order the elements in the DOM (as you said, the elements are … Read more