mirror of https://github.com/docker/docs.git
Add fade out animation for copy container id feedback
Signed-off-by: Clement Ho <ClemMakesApps@gmail.com>
This commit is contained in:
parent
458c3d687b
commit
1b68613b5a
|
|
@ -72,7 +72,7 @@ var ContainerSettingsGeneral = React.createClass({
|
||||||
_this.setState({
|
_this.setState({
|
||||||
copiedId: false
|
copiedId: false
|
||||||
});
|
});
|
||||||
}, 3000);
|
}, 5000);
|
||||||
},
|
},
|
||||||
|
|
||||||
handleSaveContainerName: function () {
|
handleSaveContainerName: function () {
|
||||||
|
|
@ -189,7 +189,7 @@ var ContainerSettingsGeneral = React.createClass({
|
||||||
|
|
||||||
if (this.state.copiedId) {
|
if (this.state.copiedId) {
|
||||||
clipboardStatus = (
|
clipboardStatus = (
|
||||||
<p><strong>Copied to Clipboard</strong></p>
|
<p className="fadeOut"><strong>Copied to Clipboard</strong></p>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -83,6 +83,15 @@
|
||||||
.disabled {
|
.disabled {
|
||||||
border-bottom: none;
|
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 {
|
p {
|
||||||
font-weight: 300;
|
font-weight: 300;
|
||||||
margin-top: 5px;
|
margin-top: 5px;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue