You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
exportfunctiongenerateKeyframes(a,b,delta,duration,ease,fn,node,style){varid='__svelte'+~~(Math.random()*1e9);// TODO make this more robustvarkeyframes='@keyframes '+id+'{\n';for(varp=0;p<=1;p+=16.666/duration){vart=a+delta*ease(p);keyframes+=(p*100)+'%{'+fn(t)+'}\n';}keyframes+='100% {'+fn(b)+'}\n}';style.textContent+=keyframes;document.head.appendChild(style);node.style.animation=node.style.animation.split(',')// <----- Change this line.filter(function(anim){// when introing, discard old animations if there are anyreturnanim&&(delta<0||!/__svelte/.test(anim));}).concat(id+' '+duration+'ms linear 1 forwards').join(', ');}
In PhantomJS (which is nearing end-of-life, but some of us still need to use it), the node.style.animation = ... line produces an error (see sveltejs/svelte-transitions#2).
I know this is a PhantomJS bug, but PhantomJS is no longer maintained.
The text was updated successfully, but these errors were encountered:
uglow
changed the title
Simple: Allow node.style.animation to be undefined
Simple: Patch node.style.animation to be work when undefined
May 16, 2017
uglow
changed the title
Simple: Patch node.style.animation to be work when undefined
Simple: Patch node.style.animation to work when undefined
May 16, 2017
Well, actually any unknown CSS property returns undefined and according to this http://caniuse.com/#feat=css-animation IE<10 doesn't support CSS animations. So this would also be a fix for those browsers.
In https://github.com/sveltejs/svelte/blob/master/src/shared/transitions.js:
In PhantomJS (which is nearing end-of-life, but some of us still need to use it), the
node.style.animation = ...
line produces an error (see sveltejs/svelte-transitions#2).When this line is changed to:
... PhantomJS runs as expected.
I know this is a PhantomJS bug, but PhantomJS is no longer maintained.
The text was updated successfully, but these errors were encountered: