Modify animation
This commit is contained in:
@@ -11,10 +11,10 @@
|
|||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
@keyframes example {
|
@keyframes example {
|
||||||
0% {background-color: inherit;}
|
0% {background-color: none;}
|
||||||
25% {background-color: #3f51b5;}
|
25% {background-color: #3f51b5;}
|
||||||
50% {background-color: #3f51b5;}
|
50% {background-color: #3f51b5;}
|
||||||
100% {background-color: inherit;}
|
100% {background-color: none;}
|
||||||
}
|
}
|
||||||
|
|
||||||
::-webkit-scrollbar {
|
::-webkit-scrollbar {
|
||||||
|
|||||||
@@ -171,7 +171,7 @@ class TreeNode extends React.Component<Props, State> {
|
|||||||
this.dirtyEdges = this.dirtyMessage = this.dirtySubnodes = false
|
this.dirtyEdges = this.dirtyMessage = this.dirtySubnodes = false
|
||||||
|
|
||||||
const shouldStartAnimation = (isDirty && !this.animationDirty) && !this.props.isRoot
|
const shouldStartAnimation = (isDirty && !this.animationDirty) && !this.props.isRoot
|
||||||
const animation = shouldStartAnimation ? { animation: 'example 0.5s' } : {}
|
const animation = shouldStartAnimation ? { willChange: 'auto', translateZ: 0, animation: 'example 0.5s' } : {}
|
||||||
this.animationDirty = shouldStartAnimation
|
this.animationDirty = shouldStartAnimation
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user