emile icon indicating copy to clipboard operation
emile copied to clipboard

emile('test', 'opacity: 0'); // doesn't work

Open ded opened this issue 13 years ago • 4 comments

sort of a major use-case for animation. this basically doesn't work in <= IE8 i tried taking a stab at this in a branch, but having a hard time parsing out what some of this code means.

ded avatar Apr 19 '11 21:04 ded

Isn't this just down to the fact that old versions of IE don't support the opacity property, but use filter instead?

beastaugh avatar Apr 20 '11 16:04 beastaugh

correct. but you can't just do this:

emile('test', 'filter:alpha(opacity=0);')

the émile parser won't know what to do with the value alpha(opacity=0) since it's not an enumerable number like opacity:0.

ded avatar Apr 20 '11 16:04 ded

Fixed this a while back — https://github.com/kangax/emile/commit/bec75a4e684fd701efe1e91069900814a4b55062 Pull if you want. There's also a couple more somewhat related commits after that one.

kangax avatar Apr 20 '11 21:04 kangax

Did this aswell. Plus animation direction processing. (Stoping animation if the direction changes) https://github.com/zorker/emile/blob/master/emile.js

zorker avatar Jan 18 '12 11:01 zorker