Skip to content

Commit

Permalink
Using rotate instead of rotateZ for older versions (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentCATILLON authored Apr 30, 2020
1 parent 0fe7017 commit b83b9dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ class Explosion extends React.PureComponent<Props, State> {
outputRange: [1, 1, 1, fadeOut ? 0 : 1]
});
const containerTransform = [{translateX: left}, {translateY: top}];
const transform = [{rotateX}, {rotateY}, {rotateZ}, {translateX}];
const transform = [{rotateX}, {rotateY}, {rotate: rotateZ}, {translateX}];

return (
<Confetti color={colors[Math.round(randomValue(0, colors.length - 1))]} containerTransform={containerTransform} transform={transform} opacity={opacity} key={index} />
Expand Down

0 comments on commit b83b9dc

Please sign in to comment.