Translate Y Animation Doesn't Work Transition Motion
See original GitHub issueCan’t figure out how to animate translateY. When replacing the value with top it works fine.
willEnter = () => {
return {
translateY: 100
};
}
render() {
const boxAttrs = {
className: 'col-xs-12 col-md-4 intro-box',
};
return (
<div className="intro">
<TransitionMotion
willEnter={this.willEnter}
styles={this.props.items.map(item => ({
key: item.key,
style: { translateY: spring(0) }
}))}>
{interpolatedStyles =>
<div className="row">
{interpolatedStyles.map(config => {
return <div {...boxAttrs} key={config.key} style={{...config.style}} />
})}
</div>
}
</TransitionMotion>
</div>
);
}
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Animation translate doesn't work properly - Stack Overflow
The image doesn't drop at all, does not transition from 0 opacity to 1 opacity. It just suddenly appears after the given duration....
Read more >transform-translate isn't working with animation - CSS-Tricks
Hi everyone I write this code https://codepen.io/drissboumlik/full/JMgZXj/ and i've noticed that the transform isn't working until i remove ...
Read more >An Interactive Guide to CSS Transitions - Josh W Comeau
This comprehensive guide shows how to use CSS transitions! A back-to-basics look at the fundamental building blocks we need to create ...
Read more >Using CSS transitions - CSS: Cascading Style Sheets | MDN
CSS transitions let you decide which properties to animate (by listing them explicitly), when the animation will start (by setting a delay), ...
Read more >CSS3 Animations with Transitions & Transforms
Also you can include both X and Y axes to tilt the element's angles. element { transition: transform 0.3s ease; }element:hover { transform:...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I do have the same problem, none of the transform property are supported
this give me an invalid styles supplied to TransitionMotion, though it’s valid react style props
Here’s how I use it for route transitions with translateX; https://gist.github.com/mhaagens/61f88e3fbfddbe2c00708f3ebd099be4