css-animations

Cross-Browser CSS3 Keyframe Animation Firefox

风流意气都作罢 提交于 2019-12-05 04:11:01
I have a simple "pulsating" effect on the play-button (which is an anchor tag), using CSS3 and keyframes. While it works flawlessly in Chrome and Safari, it doesn't seem to be working in Firefox. Does anyone have an idea on why? li > a { -webkit-animation: pulsate 3s ease-in-out; -moz-animation: pulsate 3s ease-in-out; -o-animation: pulsate 3s ease-in-out; animation: pulsate 3s ease-in-out; -webkit-animation-iteration-count: infinite; -moz-animation-iteration-count: infinite; -o-animation-iteration-count: infinite; animation-iteration-count: infinite; } @-webkit-keyframes pulsate { 0% {

CSS Animation Delay Not Working

徘徊边缘 提交于 2019-12-05 04:10:05
Trying to fade in one div....and 7 seconds later, fade another div in. I cannot, for the life of me, figure out why it's not working. The animations themselves work (the fadein/fadeout animations) but I need the "going" div to fade in after a set amount of seconds. Anyone know how to do this correctly? .coming{ width:320px; height:auto; position:absolute; top:0px; left:0px; margin-left:10px; background:#FFF; color:#000; font-family: Sans-Serif; font-size:24px; border-radius: 10px 10px 10px 10px; -moz-box-shadow: 0px 0px 0px #000; -webkit-box-shadow: 0px 0px 0px #000; box-shadow: 1px 1px 5px

adding animation to flex-wrap

喜你入骨 提交于 2019-12-05 03:58:56
when it comes to wrap point how can we add animation? maybe this can help: we have a header and inside of that header we have container with flex attr and the direction is column when we resize our browser from bottom to top or when we changing height of browser those items suddenly reshape , I just want to add animation to this event.thx <header> <div class="container"> <div class="item1 item"></div> <div class="item2 item"></div> <div class="item3 item"></div></div></header> header { width: 200vw; max-height: 100vh ; } .container{ display: flex; max-height:100vh; flex-direction: column; flex

CSS animation won't trigger on addClass in jQuery

陌路散爱 提交于 2019-12-05 03:13:06
I have a very strange issue. I'm loading articles from JSON in jQuery and as they load, I'd like to add a class of 'animate' to each dynamic element. $.each(jsonArticles, function (i, article) { var $articleHTML = $( '<article class="article">' + '<a href="' + jsonObject.filmLink + article.reviewLink + '"><img src="' + jsonObject.imagePath + article.reviewImage + '" alt=""></a>' + '<h1><a href="' + jsonObject.filmLink + article.reviewLink + '">' + article.reviewTitle + '</a></h1>' + '<p><a href="' + jsonObject.filmLink + article.reviewLink + '">' + article.reviewSummary + '</a></p>' + '<

How do I prevent Safari css keyframe animation flicker?

╄→尐↘猪︶ㄣ 提交于 2019-12-05 01:39:24
问题 I've tried everything from adding extra keyframes (0%, 1%, 100% or 0%, 99%, 100%) to setting -webkit-animation-fill-mode to forwards to the oft-mentioned -webkit-backface-visibility: hidden; trick mentioned in other threads, but I'm still seeing a flicker in my css keyframe animation at the start of almost every animation iteration in Safari 7 (both desktop and iOS). Chrome seems to be flicker-free. JSBin: http://jsbin.com/julor/2/edit HTML: <div class="ripple"></div> CSS: body { background

CSS calc with inherit

ぃ、小莉子 提交于 2019-12-04 23:44:23
I would like to use inherit with calc() like this: #foo { animation-duration: 10s; } #foo > .bar { animation-duration: calc(inherit + 2s); /* =12s */ } But it don't seem to works. Is it browsers bug or specs? The inherit keyword can only exist alone as a value in a property declaration. It cannot be used with anything else as a value, because it's a value in and of itself. This means it cannot be used with functions like calc() either. See CSS2.1 and css3-cascade . Furthermore, the calc() function itself only takes literal numeric values such as numbers, dimensions and percentages . So to put

Can I apply animations to margins?

南笙酒味 提交于 2019-12-04 22:38:39
I'm trying to animate in CSS3 margins, which this site seems to say you can, but I can't get working. I actually have 3 animations. 1 for a simple initial fadeIn on initial load, then the 2 others for the margin animation on click. I've also just tried margin instead of the top and bottom but still no sign of it working. Click on a section to see animation toggle. $(".section").click(function() { $(this).toggleClass("open"); }); body{ background: #f1f1f1; } .section{ display: block; background: #fff; border-bottom: 1px solid #f1f1f1; animation: fadeIn .5s ease, margin-top .5s ease, margin

IE11 - Toggling a Class via jQuery.toggleClass() Doesn't Activate the Class in IE11 - It Works in All Other Browsers

女生的网名这么多〃 提交于 2019-12-04 18:44:30
This works in all browsers except IE 11. My code is pretty basic. Click on the text to toggle the class "infinite" which (should) loop the bounce effect forever. IE11 applies the class to the H1 tag but it doesn't animate infinitely like it does in all other browsers. The intended behavior is for it to bounce once at load (this works) and clicking the text applies the class "infinite" which (should) makes it bounce forever (this doesn't work in IE 11). $(window).ready(function(){ $('h1').on('click',function(){ $('h1').toggleClass('infinite'); }); }); <link href="//cdnjs.cloudflare.com/ajax

Endless Rotating DIV but with Absolute Positioning

对着背影说爱祢 提交于 2019-12-04 16:51:55
I'm facing a problem, I have a div with an absolute position, and I'm trying to rotate it 360 degrees with an endless looping. But if I use the transform: translate (-50%,-50%) to fully center this div, it won't work properly. HTML <div class="randomName"></div> CSS .randomName { background-color: orange; width: 1500px; height: 1500px; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); animation: orbita 2s linear infinite; -webkit-animation: orbita 2s linear infinite; -moz-animation: orbita 2s linear infinite; -o-animation: orbita 2s linear infinite; } @keyframes orbita

Defining keyframe animations inside media queries

拥有回忆 提交于 2019-12-04 16:50:25
问题 I'm trying to get objects to "slide in" from the bottom of the screen, but since I can't get the screen height as a unit in CSS, I'm trying to do this with media queries, like so: @media(max-height:500px) { @keyframe slideUp { 0% { transform: translate3d(0,500px,0); } 100% { transform: translate3d(0,0,0); } } } @media(max-height:750px) { @keyframe slideUp { 0% { transform: translate3d(0,750px,0); } 100% { transform: translate3d(0,0,0); } } } /* etc. */ This doesn't work (it uses the first