
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
react-steersman-transition
Advanced tools
Tiny react transition library
JSS example
import React, { Component } from 'react';
import classNames from 'classnames';
import withStyles from 'react-jss';
const styles = theme => ({
'animation': {
transition: 'opacity 1s ease',
},
'fade-enter-start': {
opacity: 0,
},
'fade-enter-active': {
opacity: 1,
},
'fade-enter-done': {
opacity: 1,
},
});
function mapProps({ direction, status }) {
return {
className: classNames(
classes.animation,
classes[`fade-${direction}-${status}`],
)
}
}
@withStyles(styles)
export default class App extends Component {
render() {
const { classes } = this.props;
return <Transition
timeout={1000}
mapProps={mapProps}
children={({ className }) => <div className={className}>transition</div> }
startOnMount
/>
}
}
Style object example
import React, { Component } from 'react';
const styles = {
'animation': {
transition: 'all 1s ease',
},
'fade-enter-start': {
opacity: 0,
},
'fade-enter-active': {
opacity: 1,
},
'fade-enter-done': {
opacity: 1,
},
};
function mapProps({ direction, status }) {
return {
style: {
...styles.animation,
...styles[`fade-${direction}-${status}`]
},
};
}
export default class App extends Component {
render() {
return <Transition
timeout={1000}
mapProps={mapProps}
children={({ style }) => <div style={style}>transition</div>}
startOnMount
/>
}
}
import React, { Component } from 'react';
import { Animated, Easing, StyleSheet } from 'react-native';
const styles = StyleSheet.create({
'text': {
color: '#000',
},
});
export default class App extends Component {
static timeout = 375;
value = new Animated.Value(0);
animate = (direction) => {
if (this.animation) {
this.animation.stop();
}
const display = direction === 'enter';
this.value.setValue(display ? 0 : 1);
this.animation = Animated.timing(this.value,
{
toValue: display ? 1 : 0,
duration: App.timeout,
easing: Easing.cubic,
},
).start();
};
render() {
return <Transition
timeout={App.timeout}
children={() => <Animated.Text style={[styles.text, { opacity: this.value }]}>transition</Animated.Text>}
onEnter={this.animate}
startOnMount
/>
}
}
License The MIT License Copyright (c) 2017-2018 Ivan Zakharchanka
FAQs
Tiny react transition library
We found that react-steersman-transition demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.