mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-25 02:53:53 +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>
|
||||
<head>
|
||||
<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>
|
||||
<body>
|
||||
<div id="root">
|
||||
|
|
|
@ -9,6 +9,16 @@ const styles = {
|
|||
},
|
||||
tree: {
|
||||
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'
|
||||
};
|
||||
return (
|
||||
<div style={{textDecoration: collapsed ? 'line-through' : 'none'}}>
|
||||
<div style={{ ...styles.animated, ...styles.fadeIn, textDecoration: collapsed ? 'line-through' : 'none'}}>
|
||||
<LogMonitorEntryAction
|
||||
theme={this.props.theme}
|
||||
collapsed={collapsed}
|
||||
|
|
Loading…
Reference in New Issue
Block a user