Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multiple transition() on one element with no queue #68

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Aug 29, 2012

  1. multiple transition() on one element with no queue

    The problem was that on every transition() call, the css property "transition" got overwritten.
    
    for example:
    
    $(elm).transition({ opacity: 1, duration: 400, easing: 'ease', queue: false })
    $(elm).transition({ rotate: 30, duration: 300, easing: 'in', queue: false })
    
    would result in element css: "transition: rotate 300 ease-in"
    
    i now merge the properties to generate the css: "transition: opacity 400ms ease, rotate 300ms ease-in"
    
    also "unmerge" function allows to remove a property from the string (the whole string used to be cleared) when finished transitioning.
    
    this also allows for the hardcoded "transition" properties on the element to be maintained, if we are transitioning some other property.
    annam committed Aug 29, 2012
    Configuration menu
    Copy the full SHA
    304cde2 View commit details
    Browse the repository at this point in the history