Skip to content
This repository has been archived by the owner on Jun 11, 2021. It is now read-only.

Commit

Permalink
Add fade out animation for copy container id feedback
Browse files Browse the repository at this point in the history
Signed-off-by: Clement Ho <ClemMakesApps@gmail.com>
  • Loading branch information
ClemMakesApps committed Jun 1, 2016
1 parent 458c3d6 commit 1b68613
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/ContainerSettingsGeneral.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ var ContainerSettingsGeneral = React.createClass({
_this.setState({
copiedId: false
});
}, 3000);
}, 5000);
},

handleSaveContainerName: function () {
Expand Down Expand Up @@ -189,7 +189,7 @@ var ContainerSettingsGeneral = React.createClass({

if (this.state.copiedId) {
clipboardStatus = (
<p><strong>Copied to Clipboard</strong></p>
<p className="fadeOut"><strong>Copied to Clipboard</strong></p>
);
}

Expand Down
9 changes: 9 additions & 0 deletions styles/container-settings.less
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,15 @@
.disabled {
border-bottom: none;
}
.fadeOut {
animation: fade-out 5s ease-in-out forwards;
}
@keyframes fade-out {
0% { opacity: 0; }
10% { opacity: 1; }
85% { opacity: 1; }
100% { opacity: 0; }
}
p {
font-weight: 300;
margin-top: 5px;
Expand Down

0 comments on commit 1b68613

Please sign in to comment.