Demo
Attributes
The "pattern" attribute only works on Android or devices that support the native Vibration API. You can choose from the following values: "light", "medium", "strong", "success", "warning", and "failed".
pattern "light", "medium", "strong", "success", "warning", and "failed". light: [10],
medium: [40],
heavy: [70],
success: [10, 50, 10],
warning: [50, 30, 80],
error: [70, 40, 70, 40, 70],
Actions (Alternative)
InitHaptics
This global action dynamically attaches event listeners to all elements with the attribute "haptics"
Note
Invoke this action on page load and add the attribute haptics="<value>" to target elements
Value "light", "medium", "strong", "success", "warning", and "failed". light: [10],
medium: [40],
heavy: [70],
success: [10, 50, 10],
warning: [50, 30, 80],
error: [70, 40, 70, 40, 70],