The function flipCard.flipCard()
will take in four parameters
- Front image layer
- Back image layer
- Perspective, see docs for reference
- Animation curve. e.g
spring(300,20,0)
1.Include the module
flipCard = require "flipCard"
2.Add a front image layer
+ back image layer
+ the perspective
+ animation curve
flipCard.flipEffect(frontLayer, backLayer, 1600, "spring(300,20,0)")
note: 1600 is the perspective number used in the example above. The smaller the number the more perspective you get.