MCPcopy Create free account
hub / github.com/sshwsfc/xadmin / renderStyle

Function renderStyle

xadmin-dashboard/src/components/Animate.js:7–20  ·  view source on GitHub ↗
(id, enterAnimation, enterDuration, exitAnimation, exitDuration)

Source from the content-addressed store, hash-verified

5class Animation extends React.Component {
6
7 renderStyle(id, enterAnimation, enterDuration, exitAnimation, exitDuration) {
8 return (
9 `
10 .${id}-entering.${enterAnimation} {
11 animation-duration: ${enterDuration / 1000}s;
12 animation-fill-mode: both;
13 }
14 .${id}-exiting.${exitAnimation} {
15 animation-duration: ${exitDuration / 1000}s;
16 animation-fill-mode: both;
17 }
18 `
19 )
20 }
21
22 render() {
23 const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected