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

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -