jquery - Multiple transitions inside .css() -
i'm trying multiple sets of transitions jquery css object. in css write down this:
css
transition: opacity 600ms cubic-bezier(.4, 0, .2, 1), -webkit-transform 350ms cubic-bezier(.4, 0, .2, 1), transform 350ms cubic-bezier(.4, 0, .2, 1);
but can see below, won't work in jquery because of comma ',' guess?
jquery
$('.current-slide').css({ 'transition': 'opacity 600ms cubic-bezier(.4, 0, .2, 1), -webkit-transform 350ms cubic-bezier(.4, 0, .2, 1), transform 350ms cubic-bezier(.4, 0, .2, 1)', 'opacity': '0', 'z-index': '1', '-webkit-transform': 'scale(.8) translatey(0)', 'transform': 'scale(.8) translatey(0)' });
tried find useful info problem online, can't find any. thanks!
here solution try code
$('.current-slide').css({ 'transition': 'opacity 600ms cubic-bezier(.4, 0, .2, 1),-webkit-transform 350ms cubic-bezier(.4, 0, .2, 1),transform 350ms cubic-bezier(.4, 0, .2, 1)', 'opacity': '0', 'z-index': '1', '-webkit-transform': 'scale(.8) translatey(0)', 'transform': 'scale(.8) translatey(0)', });
don't brake line ..
Comments
Post a Comment