-
Notifications
You must be signed in to change notification settings - Fork 972
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add animated auto transition from hours to minutes in TimePicker
- Loading branch information
1 parent
a88868a
commit 211d542
Showing
9 changed files
with
99 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
export SlideLeft from './slide-left'; | ||
export SlideRight from './slide-right'; | ||
export ZoomIn from './zoom-in'; | ||
export ZoomOut from './zoom-out'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
@import "../base"; | ||
|
||
.enter, .leave { | ||
position: absolute; | ||
transition-timing-function: ease-in-out; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,29 @@ | ||
@import "../base"; | ||
|
||
.enter, .leave { | ||
position: absolute; | ||
} | ||
|
||
.enterActive, .leaveActive { | ||
transition-timing-function: ease-in-out; | ||
transition-duration: .35s; | ||
transition-duration: 350ms; | ||
transition-property: transform, opacity; | ||
} | ||
|
||
.enter { | ||
opacity: 0; | ||
transform: translate3d(100%, 0, 0); | ||
transform: translateX(100%); | ||
|
||
&.enterActive { | ||
opacity: 1; | ||
transform: translate3d(0, 0, 0); | ||
transform: translateX(0); | ||
} | ||
} | ||
|
||
.leave { | ||
opacity: 1; | ||
transform: translate3d(0, 0, 0); | ||
transform: translateX(0); | ||
|
||
&.leaveActive { | ||
opacity: 0; | ||
transform: translate3d(-100%, 0, 0); | ||
transform: translateX(-100%); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
@import "../base"; | ||
|
||
.enter, .leave { | ||
position: absolute; | ||
} | ||
|
||
.enterActive, .leaveActive { | ||
transition-timing-function: $animation-curve-fast-out-slow-in; | ||
transition-duration: 500ms; | ||
transition-property: transform, opacity; | ||
} | ||
|
||
.enter { | ||
opacity: 0; | ||
transform: scale(0.85); | ||
|
||
&.enterActive { | ||
opacity: 1; | ||
transform: scale(1); | ||
} | ||
} | ||
|
||
.leave { | ||
opacity: 1; | ||
transform: scale(1); | ||
|
||
&.leaveActive { | ||
opacity: 0; | ||
transform: scale(1.25); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
@import "../base"; | ||
|
||
.enter, .leave { | ||
position: absolute; | ||
} | ||
|
||
.enterActive, .leaveActive { | ||
transition-timing-function: $animation-curve-fast-out-slow-in; | ||
transition-duration: 500ms; | ||
transition-property: transform, opacity; | ||
} | ||
|
||
.enter { | ||
opacity: 0; | ||
transform: scale(1.25); | ||
|
||
&.enterActive { | ||
opacity: 1; | ||
transform: scale(1); | ||
} | ||
} | ||
|
||
.leave { | ||
opacity: 1; | ||
transform: scale(1); | ||
|
||
&.leaveActive { | ||
opacity: 0; | ||
transform: scale(0.85); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters