| 1 |
// Return flilp value based on type |
| 2 |
export const getFlipTransform = (flipType) => { |
| 3 |
switch (flipType) { |
| 4 |
case "flip-left": |
| 5 |
return "rotateY(-180deg)"; |
| 6 |
|
| 7 |
case "flip-right": |
| 8 |
return "rotateY(180deg)"; |
| 9 |
|
| 10 |
case "flip-up": |
| 11 |
return "rotateX(180deg)"; |
| 12 |
|
| 13 |
case "flip-bottom": |
| 14 |
return "rotateX(-180deg)"; |
| 15 |
|
| 16 |
case "zoom-in": |
| 17 |
return "scale(1.1)"; |
| 18 |
|
| 19 |
case "zoom-out": |
| 20 |
return "scale(0.8)"; |
| 21 |
} |
| 22 |
}; |
| 23 |
|
| 24 |
// Return css class names based on button style name |
| 25 |
export const getButtonClasses = (buttonStyle) => { |
| 26 |
switch (buttonStyle) { |
| 27 |
case "styleOne": |
| 28 |
return "btn-gradient blue"; |
| 29 |
|
| 30 |
case "styleTwo": |
| 31 |
return "btn-gradient purple"; |
| 32 |
|
| 33 |
case "styleThree": |
| 34 |
return "btn-gradient orange"; |
| 35 |
|
| 36 |
case "custom": |
| 37 |
return ""; |
| 38 |
} |
| 39 |
}; |
| 40 |
|