css-animations

CSS3 crossfade bg image when cover is used

无人久伴 提交于 2019-12-12 00:44:08
问题 I am trying to animate/crossfade bg image using CSS3. I know that this works, but only in Chrome for now: .image { width: 100%; height: 100%; background-size: cover; transition: background-image .5s ease-in; background-image: url(../image.jpg); } .image:hover { background-image:url(../image1.jpg; } In Chrome this works nicely, with seamless transition from one image to another. I know that I can animate background-position property using CSS3 keyframes and sprite image, but the problem is

Smooth CSS animation with sprite

纵然是瞬间 提交于 2019-12-12 00:42:52
问题 I have tried to animate my sprite and it is similar to this. I would appreciate if someone can show how to make it more smooth. I have only 3 images in my sprite with approx. 1 second delay, so the transition is quite bad. I've tried to use: from { -webkit-transform: translateX(..); } to { -webkit-transform: translateX(..); } But it did not work. I would really appreciate any help. 回答1: try to add some transition effects like : -webkit-transition: all 1s ease; -moz-transition: all 1s ease;

CSS Animation rotate3d not working in Safari

陌路散爱 提交于 2019-12-11 16:37:20
问题 I cannot get this animation to work in Safari 12 no matter what I try. I've tried vendor prefixes and all, but nothing works. It works fine in Chrome. Anyone have any ideas? <div class="spinners"></div> This is the css: @keyframes spinx { 0% { transform: rotate3d(0, 1, 1, 360deg); } 100% { transform: rotate3d(0, 0, 0, 360deg); } } .spinners { display: block; width: 100%; height: 4rem; overflow: hidden; position: relative; } .spinners:before, .spinners:after { content: ""; width: 4rem; height:

Display one content after another using CSS keyframes

拟墨画扇 提交于 2019-12-11 15:50:03
问题 I have the following HMTL and CSS : .parent{ height: 10%; width: 100%; float: left; } .content1{ height: 100%; width: 20%; background-color: blue; float: left; } .content2{ height: 100%; width: 20%; background-color: red; float: left; } .content3{ height: 100%; width: 20%; background-color:yellow; float: left; } .content4{ height: 100%; width: 20%; background-color: green; float: left; } .content5{ height: 100%; width: 20%; background-color: orange; float: left; } .parent { animation-name:

CSS Animation to apply to elements one after the other?

浪尽此生 提交于 2019-12-11 13:20:04
问题 I'm trying to use the CSS animation in my project. everything works as it should. However, when I run my code, the CSS animation get applied to all the elements with the class .allPro at the same time. Is there any way to apply the CSS animation individually? For example, make the first element appear and then the second one and then third one and so on and so forth? This is my code on FIDDLE And this is my CSS code: .allPro { width:150px; height:150px; float:left; margin:5px; background

Angular animate parent div of ng-view using element insde ng-view

拜拜、爱过 提交于 2019-12-11 12:00:34
问题 Is it possible to css animate a div (background-color) that is outside the ng-view, using a directive on a $state inside the ng-view? The ng-view has css animations for the routing. If I do not animate the div then the ng-view anims work fine, but.. If I add animation classes to the div(bgId) then the routing anims do not fire. Here is a sample of html: (Button added as example - would normally be in the template pages eg. home.html / login.html ) <body ng-app="app" ng-controller="MainCtrl">

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

FadeInUp css animation not working

末鹿安然 提交于 2019-12-11 10:44:29
问题 I made attempts to create a CSS animation, when you hover over the box, it reveals the div using CSS animations. I have used the following site as reference. click here however i can't seem to achieved the efx. On my site i have use JqUERY for a show and hide function, my addClass and RemoveClass works however overall the function isn't working how it should do. Can someone guide me in the right direction. / ** HTML * * / div class="box"> <div class="trigger">hhh</div> <div class="overlay">

image cropped as a triangle on webpage

允我心安 提交于 2019-12-11 10:32:47
问题 This is a real css-challenge, I don't think this is possible: I've made some white css triangles. and when you hover on a triangle, the white triangle should change in a photo also cropped like a triangle. I've made a jsfiddle for it: fiddleLink Any help appreciated 回答1: You can use svg to achieve this effect: http://jsfiddle.net/xTd6Y/4/ <div id="image-wrapper"> <svg id="svg-1" class="clip-svg"> <rect class='svg-background' width="300" height="300" fill="#ffffff" /> <image id="img-1" class=

Infinitely sliding CSS3 gradient

不打扰是莪最后的温柔 提交于 2019-12-11 10:18:26
问题 I have this simple animation that pulses back and forth diagonally, I would like it to slide endlessly instead of pulsing back and forth. Here is my code: body {margin: 0; padding: 0;} .error-con { background: rgba(255, 0, 89, 1); background: -moz-linear-gradient(45deg, rgba(255, 0, 89, 1) 0%, rgba(0, 179, 255, 1) 100%); background: -webkit-gradient(left bottom, right top, color-stop(0%, rgba(255, 0, 89, 1)), color-stop(100%, rgba(0, 179, 255, 1))); background: -webkit-linear-gradient(45deg,