Transition background-color via slide animation

In order to slide the background color up you would need to use a background image, or a gradient of some sort, while gradually adjusting the background-position: .box { width: 200px; height: 100px; background-size: 100% 200%; background-image: linear-gradient(to bottom, red 50%, black 50%); -webkit-transition: background-position 1s; -moz-transition: background-position 1s; transition: background-position 1s; } .box:hover { … Read more

CSS3 animation transition: opacity not working

You can just use visibility without using display: .top-nav li ul.drop-down { list-style-type: none; position: absolute; top: 32px; left: -40px; visibility: hidden; opacity: 0; -webkit-transition: opacity 0.3s; -moz-transition: opacity 0.3s; -o-transition: opacity 0.3s; transition: opacity 0.3s; } .top-nav li:hover ul.drop-down { visibility: visible; opacity: 1; } Demo.

CSS (transition) after a pseudo element – how to transition content that shows on hover

after is not a valid value of transition. Instead put transition as a property of the :after selector. div:after { content: ” – positive!”; position: relative; opacity: 0; top: -20px; -webkit-transition: all 3s; transition: all 3s; } div:hover:after { opacity: 1; top: 0px; } <div>Test</div> You can also have a different transition on the hover … Read more

Creating a CSS ‘path’ on hover

Using a different approach you’ll get a slightly different effect. You can play with the times of the setTimeout and the transition to modify the behavior. See the fiddle + function() { var to; $(“.wrap”).on(‘mouseenter’, function() { var circles = $(this).children(); var degree = (2 * Math.PI) / circles.length; //calc delta angle var transforms = … Read more

Turning off Twitter Bootstrap Navbar Transition animation

Bootstrap accomplishes the transition animation of the responsive nav bar the same way it does any collapse, which is using a CSS3 transition. To turn off the transition for only the navbar (leaving any other transitions in place), you simply have to override the CSS. I’d suggest adding a class, such as no-transition (but the … Read more

Can I apply a CSS transition to the overflow property?

There are many properties that can’t be transitioned. overflow is among them; the render engine has no idea how to transition between “hidden” and “shown”, because those are binary options, not intervals. This is the same reason why you can’t transition between display: none; and display: block; (for example): there are no in-between phases to … Read more