rstacruz / jquery.transit

Super-smooth CSS3 transformations and transitions for jQuery
http://ricostacruz.com/jquery.transit
7.3k stars 864 forks source link

Cannot use transition() with queue() #240

Closed Tchoupinax closed 7 years ago

Tchoupinax commented 7 years ago

Hello,

Edit: I sent the issue, retry my code and it works ... ! .. x) Sorry so.

I found an issue about queue() compatibility :

$('b').transition({
    x: -200
}, 2000).queue(function (next) {
    $('b').transition({
        scale: 3
    });
});

.transtion().transition works anyway ...

my original code is :

$('.b').click(function () {}).transition({
        // WORKS WELL
        x: -p
    }, 2000).queue(function (next) {
        // WORKS WELL
        $(this).css({
            "border-radius": '50px',
            transition: '1s'
        });
        // FAILED
        $(this).transition({
            scale: 2
        });
        next();
    });

I tried many other way but nothing seems good... i think the issue is about queue() function as mentioned on first code..

Anyone can help me ? Thank you for your time. :)