Skip to content

Instantly share code, notes, and snippets.

@tonis2
Created May 12, 2016 17:30
Show Gist options
  • Save tonis2/92c87f3e1b1b0f5e93035124f7437550 to your computer and use it in GitHub Desktop.
Save tonis2/92c87f3e1b1b0f5e93035124f7437550 to your computer and use it in GitHub Desktop.
let style = {
transform: `translate(${index*2}px, 0 )`,
transform: `rotate(${index*2}px, 0 )`,
boxShadow:`1px 1px 1px 2px ${index}px`
};
return <section key={index} id="card-container" style={style}>
<div id="card">
<p>{card}</p>
</div>
</section>
})
@devlato
Copy link

devlato commented May 12, 2016

let style = {
  transform: `translate(${index*2}px, 0 ) rotate(${index*2}px, 0 )`,
  boxShadow:`1px 1px 1px 2px ${index}px`
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment