Skip to content

Clean up transitions after executing them, or ??? #14

@ppcano

Description

@ppcano

Hi, i would like to discuss this feature.

I am currently using jquery.transit.js for a Mobile UI Kit project, so i am testing it on different ways.

I found some time on the code passing the following cleanUP properties:

    properties['-webkit-transform-style']='';
    properties['-webkit-transition-property']='';
    properties['-webkit-transition-duration']='';
    properties['-webkit-transition-timing-function']='';
    properties['-webkit-transition-delay']='';
    properties['-webkit-transform']='';

That is required if after applying a transition ( $().transition(properties, duration, easing)) i do a $().css(properties), targeting the same css properties.

What it happens with the current implementation is that the second css changes, triggers the transition ( something i don't want that ), i guess, because the transition properties are still present on the element. I also tried to send duration 0, but i also find out it didn't respond as expected.

I did not get deeper in the code, because i wanted to get the maintainer opinions.

Looking forward hearing new about this issue.

Thanks and regards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions