nnattawat / flip

A lightweight jQuery plugin to make 3D card flipping animation
Other
627 stars 312 forks source link

Add support for custom front/back face selectors #27

Closed Download closed 9 years ago

Download commented 9 years ago

Currently, flip always picks the elements with class="front" and class="back" as the front and back faces of the card. This can be inconvenient when these classes are already in use for something else (especially back can be tricky as it's often used for links that take you back etc), or when you have no control over the markup and the HTML you want to enrich doesn't have these style classes.

Add two settings:

When set, these will be used as the selectors for the faces instead of '.front' and '.back'. When not set, flip should fall back to the current behavior of using '.front' and '.back'.

Download commented 9 years ago

This functionality has been added in download/flip

Download commented 9 years ago

download/flip has been merged back into this repo, so this feature is now available.