Make animation cancelable for auto-save indicator

This commit is contained in:
Yuya Ochiai
2017-02-17 22:24:55 +09:00
parent 831d758f2f
commit 0e32a2299c
3 changed files with 27 additions and 39 deletions

View File

@@ -16,21 +16,8 @@
margin: 0;
}
.AutoSaveIndicator-enter {
opacity: 0.01;
}
.AutoSaveIndicator-enter.AutoSaveIndicator-enter-active {
opacity: 1;
transition: opacity 0ms;
}
.AutoSaveIndicator-leave {
opacity: 1;
}
.AutoSaveIndicator-leave.AutoSaveIndicator-leave-active {
opacity: 0.01;
.AutoSaveIndicator.AutoSaveIndicator-Leave {
opacity: 0;
transition: opacity 1s cubic-bezier(0.19, 1, 0.22, 1);
}