Skip to content

Instantly share code, notes, and snippets.

@darkwing
Created August 9, 2013 14:39
Show Gist options
  • Save darkwing/6194124 to your computer and use it in GitHub Desktop.
Save darkwing/6194124 to your computer and use it in GitHub Desktop.
.item
transition-delay 4s
.expanded .item
transition-delay 0
/*
When I add the "expanded" class to the parent, the item transition should happen immediately
When I remove the "expanded" class from the parent, the item should wait 4s and then transition
Am I incorrect here?
*/
@matyus
Copy link

matyus commented Aug 9, 2013

did you try inverting the method, not sure if it'll make a difference, but it might.

.item
    transition-delay 0

.collapsed .item
    transition-delay 4s

@jory
Copy link

jory commented Aug 9, 2013

This bin seems to behave the way you assume it would: http://jsbin.com/abawik/4/edit

@enjikaka
Copy link

enjikaka commented Aug 9, 2013

Your version seems to work for me.

http://cdpn.io/lqtuf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment