
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
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.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.