mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-28 20:43:56 +03:00
lightweight css animations for new actions entering the log.
This commit is contained in:
parent
1eeda8073a
commit
ff00269968
|
@ -1,6 +1,18 @@
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>Redux Counter Example</title>
|
<title>Redux Counter Example</title>
|
||||||
|
<style>
|
||||||
|
/* unsure how to represent this in js, so it stays here for now */
|
||||||
|
@-webkit-keyframes fadeIn {
|
||||||
|
from { opacity: 0; }
|
||||||
|
100% { opacity: 1; }
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes fadeIn {
|
||||||
|
from { opacity: 0; }
|
||||||
|
100% { opacity: 1; }
|
||||||
|
}
|
||||||
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="root">
|
<div id="root">
|
||||||
|
|
|
@ -9,6 +9,16 @@ const styles = {
|
||||||
},
|
},
|
||||||
tree: {
|
tree: {
|
||||||
paddingLeft: 0
|
paddingLeft: 0
|
||||||
|
},
|
||||||
|
animated: {
|
||||||
|
WebkitAnimationDuration: '0.2s',
|
||||||
|
animationDuration: '0.2s',
|
||||||
|
WebkitAnimationFillMode: 'both',
|
||||||
|
animationFillMode: 'both'
|
||||||
|
},
|
||||||
|
fadeIn: {
|
||||||
|
WebkitAnimationName: 'fadeIn',
|
||||||
|
animationName: 'fadeIn'
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -64,7 +74,7 @@ export default class LogMonitorEntry {
|
||||||
cursor: (index > 0) ? 'pointer' : 'default'
|
cursor: (index > 0) ? 'pointer' : 'default'
|
||||||
};
|
};
|
||||||
return (
|
return (
|
||||||
<div style={{textDecoration: collapsed ? 'line-through' : 'none'}}>
|
<div style={{ ...styles.animated, ...styles.fadeIn, textDecoration: collapsed ? 'line-through' : 'none'}}>
|
||||||
<LogMonitorEntryAction
|
<LogMonitorEntryAction
|
||||||
theme={this.props.theme}
|
theme={this.props.theme}
|
||||||
collapsed={collapsed}
|
collapsed={collapsed}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user