-
Notifications
You must be signed in to change notification settings - Fork 365
Folder Expand/Collapse Animations #358
Comments
You should be able to do this yourself with CSS, I think. @simurai, any pointers? |
@SebastianSzturo I played around a bit by adding animations. You can try it in your .tree-view {
.entry.expanded > .entries {
-webkit-animation: tree-view-expanded .4s cubic-bezier(.15,.7,.3, 1);
}
@-webkit-keyframes tree-view-expanded {
0% { opacity: 0; transform: translateY(-10px); }
100% { opacity: 1; transform: translateY(0); }
}
} But it's not that great and has some flaws:
So to do it really well, some more effort would be needed. Maybe calculate all positions with JS and inline the CSS? Then expanding/collapsing can be more dynamic. But it should only be considered if performance will be smooth. |
@simurai Thank for looking into it! |
Yeah, I think it would improve UX because you see where things come from and go back again. So it would help orientation. Also animating the tree-view or find&replace panels would be nice. But because they all change width/height, performance wouldn't look that smooth. So not sure. Maybe no animation is still better than choppy animation? Adding animations on smaller things and if possible only use |
I've been trying to play around with this and I've been animating the expand/collapse by using CSS transitions on the |
@abejfehr The selector is: .list-tree.has-collapsable-children .list-nested-item.collapsed > .list-tree {
display: none;
} So you might can try to override that. |
Is anyone working on this? It'd be really nice to see in the future-- currently since there are no animations it's kind of unpleasant to use the file tree. Would definitely go a long way in making Atom nicer |
It would be nice to have a expand/collapse animation on folders and projects to feel more native.
Any thoughts on that?
The text was updated successfully, but these errors were encountered: